L
LavaCreeperKing
Guest
Hi, I'm having a problem running programs with Process.Start(). I want to create a tool for running windows tools/programs such as cmd, powershell, task manager, ect... The problem is that some of the programs run a 32-bit and I want them to run in 64-bit, and two of them don't do anything. One even gives me an error. Most of the programs I try to run open just fine in 64-bit like I want.
These programs run in 32-bit.
Process.Start(@"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe")
Process.Start(@"C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe")
Process.Start(@"C:\Windows\System32\taskmgr.exe")
Process.Start(@"C:\Windows\System32\msinfo32.exe")
Process.Start("regedit.exe")
Process.Start("cleanmgr.exe")
I don't care so much about having all these running in 64-bit, but I do want powershell.exe, powershell_ise.exe, and taskmgr.exe to run in 64-bit. I tried to specify the path to the 64-bit version of the program, but they still run in 32-bit. I even tried to compile my program to run in 64-bit, but these programs still run in 32-bit. Also some other programs run in 64-bit no problem.
These run in 64-bit.
Process.Start("cmd.exe")
Process.Start("Control.exe")
These programs don't do anything
Process.Start(@"C:\Windows\System32\msconfig.exe")//Gives me a file not found error.
Process.Start(@"C:\Windows\System32\dfrgui.exe")//I don't get any errors, but nothing happens when I try to run it.
Can someone help me out here?
Continue reading...
These programs run in 32-bit.
Process.Start(@"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe")
Process.Start(@"C:\Windows\System32\WindowsPowerShell\v1.0\powershell_ise.exe")
Process.Start(@"C:\Windows\System32\taskmgr.exe")
Process.Start(@"C:\Windows\System32\msinfo32.exe")
Process.Start("regedit.exe")
Process.Start("cleanmgr.exe")
I don't care so much about having all these running in 64-bit, but I do want powershell.exe, powershell_ise.exe, and taskmgr.exe to run in 64-bit. I tried to specify the path to the 64-bit version of the program, but they still run in 32-bit. I even tried to compile my program to run in 64-bit, but these programs still run in 32-bit. Also some other programs run in 64-bit no problem.
These run in 64-bit.
Process.Start("cmd.exe")
Process.Start("Control.exe")
These programs don't do anything
Process.Start(@"C:\Windows\System32\msconfig.exe")//Gives me a file not found error.
Process.Start(@"C:\Windows\System32\dfrgui.exe")//I don't get any errors, but nothing happens when I try to run it.
Can someone help me out here?
Continue reading...