09-06-2009, 10:32 PM
how can you get the Source Drive that an exe is opened from or qm is run from?
Getting the Source Drive Mac is run from?
|
09-06-2009, 10:32 PM
how can you get the Source Drive that an exe is opened from or qm is run from?
09-06-2009, 10:40 PM
str s.getwinexe(win() 1)
out s
09-06-2009, 10:48 PM
craig1983 Wrote:str s.getwinexe(win() 1) Thanks for the help but that just give me this C:\Windows\explorer.exe im looking more for just the drive letter it is run from or the folder maybe. or a way to set a working folder for it to look in to.. test\test.exe when this runnings on a usb drive i need to find a text file that would be in the folder above the test.exe like test.txt or test text files here\test.txt now i need to get to that file when this is run from a usb drive or any drive like cd or dvd.
09-06-2009, 11:13 PM
09-07-2009, 12:25 AM
LyLerK Wrote:in Exe using the function GetCurDir you will receive the location of the exe being run. Not sure but that dont help me find it unless i add like 10 case or more in there right one for each drive letter a pc might have i know mine goes up to j sometimes is there now an easy code to just find the source drive letter?
09-07-2009, 02:23 AM
Macro
str direct = GetCurDir
09-07-2009, 03:26 AM
thanks out ill try that out
09-21-2009, 06:56 AM
Thanks.. It works great just what i was looking for.
|
« Next Oldest | Next Newest »
|