Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

running a batch script from thumb drive

Status
Not open for further replies.

calmchess21

Technical User
Dec 9, 2006
1
0
0
US
Hi I'd like to run a batch script from my thumb drive so for it to find the path to my .exe which exsists on the thumb drive i'd have to write something like f:\my.exe....the problem is as follows.

I don't know what the drive letter will be since each user could have multiple harddrives or other devices....so how do i tell the batch file how to find the path to my jump drive without changing the scripts code?
 
if it's on the same drive, could it work without drive letter at all?
just
my.exe

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top