hello everyone.
i am using the process class with the runtime for sure. as you know i use it for running commands on my windows cmd.
the usual commands work just fine such as, ping yahoo.com, ipconfig, and so much more.
with my windows vista the stupid and annoying UAC (user access control is not letting my program to use the cmd as admin. so i have downloaded a program called start ++, this program is very useful, by using this command i can run the cmd normally, type in "sudo cmd.exe", and then an admin cmd pops up and i can run all my lovely commands.
NOW IS THE PROBLEM and the reason for reading this post:
when i use the process clas and enter the command "sudo cmd.exe /k ipconfig /flushdns" java says:
Cannot run program "sudo": CreateProcess error=2, The system cannot find the file specified
can someone help me to be able to make java run my command
thanks for reading and see you at other posts
regards
hsn
i am using the process class with the runtime for sure. as you know i use it for running commands on my windows cmd.
the usual commands work just fine such as, ping yahoo.com, ipconfig, and so much more.
with my windows vista the stupid and annoying UAC (user access control is not letting my program to use the cmd as admin. so i have downloaded a program called start ++, this program is very useful, by using this command i can run the cmd normally, type in "sudo cmd.exe", and then an admin cmd pops up and i can run all my lovely commands.
NOW IS THE PROBLEM and the reason for reading this post:
when i use the process clas and enter the command "sudo cmd.exe /k ipconfig /flushdns" java says:
Cannot run program "sudo": CreateProcess error=2, The system cannot find the file specified
can someone help me to be able to make java run my command
thanks for reading and see you at other posts
regards
hsn
:-D
(
Comment