FileName can be gotten from no less than 3 different sources:
CommandLine %1 set FileName=%1
set FileName=%FileName:~1%
FOR variable %%a set FileNane=%%a
set FileName=!FileName:~1!
Variable %var% set FileName=%var:~1%
Post FOR loop %%a set FileName=%%a
:
set FileName=%FileName:~1%
In the case of FOR variable above, you will require 'SetLocal EnableDelayedExpansion' somewhere near the top of your code.
Main Topics
Browse All Topics





by: t0t0Posted on 2009-08-26 at 09:08:33ID: 25189277
Yes. you need something like this:
set FileName=%FileName:~1%