oob2
January 17th, 2003, 06:17 PM
How to get the drive and path information of the batch file currently running?
Let say if I am in D:\temp, and I want to run a batch file under C:\aaaa\bbb\c.bat
D:\temp>
Then, I type:
D:\temp\>C:\aaaa\bbb\c
I expect to get result like this:
D:\temp\>C:\aaaa\bbb\c
Drive is C
Path is \aaaa\bbb
Filename is c.bat
File extension is bat
How to do this?
Thanks.
Let say if I am in D:\temp, and I want to run a batch file under C:\aaaa\bbb\c.bat
D:\temp>
Then, I type:
D:\temp\>C:\aaaa\bbb\c
I expect to get result like this:
D:\temp\>C:\aaaa\bbb\c
Drive is C
Path is \aaaa\bbb
Filename is c.bat
File extension is bat
How to do this?
Thanks.