executing .bat file in Vista64 bit
-
Hi All, In my application I need to execute some commands. For that I am making a .bat file and execute it using Shellexecute(). It is working well for Vista32 bit, but in Vista64 bit machine Shellexecute() is not running these commands(i am running with Admin privileges also). Does ShellExecute() not support Vista64 bit? Is there any other way for Vista64 bit. Thanks Madan
-
Hi All, In my application I need to execute some commands. For that I am making a .bat file and execute it using Shellexecute(). It is working well for Vista32 bit, but in Vista64 bit machine Shellexecute() is not running these commands(i am running with Admin privileges also). Does ShellExecute() not support Vista64 bit? Is there any other way for Vista64 bit. Thanks Madan
It's probably some error in your batch file. First run the batch file manually and check if all the commands work.
«_Superman_» I love work. It gives me something to do between weekends.
-
Hi All, In my application I need to execute some commands. For that I am making a .bat file and execute it using Shellexecute(). It is working well for Vista32 bit, but in Vista64 bit machine Shellexecute() is not running these commands(i am running with Admin privileges also). Does ShellExecute() not support Vista64 bit? Is there any other way for Vista64 bit. Thanks Madan
-
It's probably some error in your batch file. First run the batch file manually and check if all the commands work.
«_Superman_» I love work. It gives me something to do between weekends.
Thanks for replying. Yes all the commands are correct because if I run this batch file with command prompt then it execute successfully. Let me explain- I am running following three commands command1)- bcdedit /set {bootmgr} device boot > D:\m1.txt command2)- bcdedit /set {default} device boot > D:\m3.txt command3)- bcdedit /set {default} osdevice boot > D\m2.txt. These three commands clears Bootmgr of Vista. For runnong these commands I make a batch file and execute it with ShellExecute() For seeing output I used pipe. Then after ShellExecute() if I see these m1,m2,m3 files then these are blank. I am confused now.
-
Hi All, In my application I need to execute some commands. For that I am making a .bat file and execute it using Shellexecute(). It is working well for Vista32 bit, but in Vista64 bit machine Shellexecute() is not running these commands(i am running with Admin privileges also). Does ShellExecute() not support Vista64 bit? Is there any other way for Vista64 bit. Thanks Madan
Madan Chauhan wrote:
...but in Vista64 bit machine Shellexecute() is not running these commands(i am running with Admin privileges also).
What does it return?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons