jamoor said:
hmm the programs are installed on my pen drive, is it possible to configure the batch file to work on any computer, because the pen drive has a different drive letter on each computer.
You may need "dot dot" notation.
For example, if your batch file is in the same directory as the executables you want it to run, you only need to write:
file1name.exe
file2name.exe
in notepad, and save as batchfilename.bat.
Running this will open both your apps.
But if the files are in different folders, you'll need to use dots!
If the exe's are in a lower directory, you simply add the directory name before the exe. For example, batch file on X drive, exe in "x:\test\poop\file.exe". You write:
test\poop\file.exe
If however these positions are reversed, you would need to use two dots for going up each folder level. So, to run x:\file.exe from a batch file in "x:\test\poop\", you write:
..\..\file.exe
The first two dots take you into x:\test\, the second take you to x:\
This eliminates the need for drive letters in your batch file, so the USB drive can have any letter it likes.
Your best bet is to make the batch file in the root directory "x:\" and name it something simple like "RunMe.bat".
Good luck!
