Hello
Just need some advice
I'm trying to convert my Batch script to C++.
Any advice? My batch script currently loads system programs (such as explorer, disk management etc.), I'd like for it to be an .exe.
For various reasons I wouldn't like to do this the automated way.
Please tell me how to convert my script to a C++ program.
Thanks in advance,
Panarchy
Converting Batch to C++
Started by Panarchy, Apr 20 2009 03:32 AM
6 replies to this topic
#1
Posted 20 April 2009 - 03:32 AM
|
|
|
#2
Posted 20 April 2009 - 04:25 AM
For most lines in your batch script, you will have a system() call in C++. I'm curious why you would see an advantage in this being a .exe, however.
#3
Posted 20 April 2009 - 01:21 PM
Thanks
Can you please give me an example of the System() call command within full C++ code?
Thanks in advance,
Panarchy
PS: The advantage I see in using C++ versus Batch, is C++ is object orientated, so it can open more than one program at a time. Also, I can insert an icon much easier into an .exe compared with a .bat. Also... I'd like to know how to convert a Batch file to an EXE file.
Can you please give me an example of the System() call command within full C++ code?
Thanks in advance,
Panarchy
PS: The advantage I see in using C++ versus Batch, is C++ is object orientated, so it can open more than one program at a time. Also, I can insert an icon much easier into an .exe compared with a .bat. Also... I'd like to know how to convert a Batch file to an EXE file.
#4
Posted 20 April 2009 - 06:53 PM
Almost have it working now, just trying to work out how to get the environmental variables in.
Any advice would be appreciated.
Thanks in advance,
Panarchy
Any advice would be appreciated.
Thanks in advance,
Panarchy
#5
Posted 21 April 2009 - 06:37 AM
Unfortunately, I don't have any experience working with environment variables.
#6
Posted 22 April 2009 - 10:32 AM
#7
Posted 24 April 2009 - 12:43 AM
LOL
Nup
Nup


Sign In
Create Account


Back to top










