Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Determine Current CD Winbatch is Running On
Question:
I am trying to run an application from a cdrom. The issue is that some users may have more than one installed and it may or may not be set to a certain drive letter. How would I detect what drive I am running the application from and how would I set it as the root directory?Answer:
Assuming you are running a compiled EXE I use:mypath=DirHome() mydrive=Strsub(mypath,1,2)or for a more general version that works with uncompiled wbt'smoi=IntControl(1004,0,0,0,0) mypath=FilePath() mydrive=Strsub(mypath,1,2)
Article ID: W15509File Created: 2003:05:13:11:28:26Last Updated: 2003:05:13:11:28:26