Click to See Complete Forum and Search --> : Exe and .bat file


Dave1024
January 22nd, 2009, 05:38 AM
I have an .exe file. It receives two input arguments which is in different directories.By hand entry i am ok working properly. But to avoid multiple time entering i want to pack the path of .exe and input files in a .bat file and by single click the entire operation completed.....

More specifically
.exe file in folder1 of path1
'input1' file in folder2 of path2
'input2' file in folder3 of path3

thanks in advance!!!!

GremlinSA
January 22nd, 2009, 07:24 AM
You'd put it in the Bat file pretty much the same way you do it in a cmd prompt..

[Path1]/[Exename] [Path2]/[Folder2] [Path3]/[Folder3]

that is it.. all done ... now you can easily run it ...

dglienna
January 22nd, 2009, 06:59 PM
:eek: not a .BAT file! (although it will still work)

Use a .CMD file instead! Even better, try Powershell 2.0 CTP

http://www.microsoft.com/downloads/details.aspx?FamilyID=60deac2b-975b-41e6-9fa0-c2fd6aa6bc89&displaylang=en