I'm just trying to output a filename to a file along with an FTP command. The desired result is this:
cd prod
get ISP_POD_111715_001.txt
This is what I have:
set buildDate=%DATE:~4,10%
set dateStr=ISP_POD_%buildDate:~0,2%%buildDate:~3,2%%buildDate:~8,2%_001.txt
%dateStr% > test.txt
simple redirect not working
Moderator: DosItHelp
Re: simple redirect not working
Code: Select all
echo %dateStr% > test.txt