ebbings
05-10-2008, 06:12 PM
(For a Windows .bat file)
If I have a file path (eg. C:\Folder\File.ext) as a variable how can I erase everything up to, and including, the last "\"?
I will also need to do the opposite, delete everything after the last "\", but this will be stored as a completely different variable.
To ease confusion...
%1 = C:\Folder\File.ext
%2 = C:\Folder\File.ext
Thanks in advance :thumbsup:
If I have a file path (eg. C:\Folder\File.ext) as a variable how can I erase everything up to, and including, the last "\"?
I will also need to do the opposite, delete everything after the last "\", but this will be stored as a completely different variable.
To ease confusion...
%1 = C:\Folder\File.ext
%2 = C:\Folder\File.ext
Thanks in advance :thumbsup: