I am facing some difficulties while working with a batch script:
@echo off & setLocal EnableDELAYedeXpansion
for /f "tokens=1 delims= " %%a in (Dir1\lastFileName.txt) do ( sqlldr user/pas@dbpath control=Dir2\Control.ctl log=Dir2\%%a.log data=%%a
lastFileName.txt contains a single line, which shows the path to a certain file. (e.g. c:\path\file.type)
No, I want to assign to a variable this path (e.g. var_path==%%a), in order to use it, everywhere in the script.
Moreover, I want to modify this variable a little
(e.g. I want just the last 10 characters)
Please give me some help,