Hey guys, I haven't programmed in VB in over a decade and I know a ton has changed. So I'll keep it simple.
I still play a game Ghost Recon Advanced Warfighter (GRAW) which came out in 2005.
I use a mod for the game named Brettzies Weapons pack 6.0 for GRAW (2005) and then GRAW2 (2007) brettzies weapon pack is 3.02.
Here's the path to the required .bat file C:\Program Files (x86)\Ubisoft\Ghost Recon Advanced Warfighter and C:\Program Files (x86)\Ubisoft\Ghost Recon Advanced Warfighter 2
I hope what I want to do is simple. I know days of old a "shell" command would be used to start a program or in today's terms: an application. I'd like to create a simple application that will run the file "bp_weapons_pack_v6.0.bat" which will do this;
file: bp_weapons_pack_v6.0..bat
graw.exe -o context_bp_weapons_pack_v6.0.xml (the -o tells GRAW.exe to run the modified .xml file "context_bp_weapons_pack_v6.0.xml
can one start a program from an xml file? the .bat file tells GRAW.exe to read/use the bp_weapons_pack_v6.0.xml and it will incorporate the weapon models into GRAW to play the game.
Q: What syntax in today's VB (express) is/are used to start external applications? my old mind remembers to create a string
Q: Why Do I want to do this? because I hate having to open the folder and dbl-click the .bat file everytime I want to use it. that and I'd like to pin the new .exe file/shortcut to my taskbar and start it from my taskbar.
I think it might be a simple task but with me, nothing is EVER easy sometimes. (yeah, I find that life is easier when I can laugh at myself).
Question
chrisj1968
Hey guys, I haven't programmed in VB in over a decade and I know a ton has changed. So I'll keep it simple.
I still play a game Ghost Recon Advanced Warfighter (GRAW) which came out in 2005.
I use a mod for the game named Brettzies Weapons pack 6.0 for GRAW (2005) and then GRAW2 (2007) brettzies weapon pack is 3.02.
Here's the path to the required .bat file C:\Program Files (x86)\Ubisoft\Ghost Recon Advanced Warfighter and C:\Program Files (x86)\Ubisoft\Ghost Recon Advanced Warfighter 2
I hope what I want to do is simple. I know days of old a "shell" command would be used to start a program or in today's terms: an application. I'd like to create a simple application that will run the file "bp_weapons_pack_v6.0.bat" which will do this;
file: bp_weapons_pack_v6.0..bat
graw.exe -o context_bp_weapons_pack_v6.0.xml (the -o tells GRAW.exe to run the modified .xml file "context_bp_weapons_pack_v6.0.xml
can one start a program from an xml file? the .bat file tells GRAW.exe to read/use the bp_weapons_pack_v6.0.xml and it will incorporate the weapon models into GRAW to play the game.
Q: What syntax in today's VB (express) is/are used to start external applications? my old mind remembers to create a string
Maybe.. DIM GRAW As String or Integer....
then I recall faintly Shell calls. Does this -> still apply in shell calls?
Q: Why Do I want to do this? because I hate having to open the folder and dbl-click the .bat file everytime I want to use it. that and I'd like to pin the new .exe file/shortcut to my taskbar and start it from my taskbar.
I think it might be a simple task but with me, nothing is EVER easy sometimes. (yeah, I find that life is easier when I can laugh at myself).
Regards,
Chrisj1968
Link to comment
https://www.neowin.net/forum/topic/1303492-warming-up-simple-exe-file/Share on other sites
23 answers to this question
Recommended Posts