|
at least that's what I think...here is the story.
I am using Kix 3.63 on W2K SP4 and would like to find the drive letter and dir that the script was run from (I am building a CD which could be mounted in any drive).
For all examples: the test.kix is in c:\loginscript
When the test script is in the same dir that I am currently in by using "kix32 test.kix" the result for @Scriptdir is "".
When running it from the root of the drive by using "kix32 loginscript\test.kix" @scriptdir returns "loginscript".
If I leave the current dir of drive C: in loginscript and start the script from drive d: by using "kix32 c:test.kix" I get "c:" as a result.
Apparently @scriptdir returns only what was in front of the script name when it was called and not the actual drive/dir it is in. So my question is...how do I find this information???
Thanks!
|