Please help. (Windows 7) The following script creates “SUCCESS_.log” file
Expecting SUCCESS_12_myfile.log
What I am doing wrong? Thanks!
@ECHO OFF
SET fn =12_myfile
echo ENDED %TIME% %DATE%>>SUCCESS_%fn%.log
Appending variable to file name problem.
Moderator: DosItHelp
Re: Appending variable to file name problem.
Code: Select all
@ECHO OFF
SET fn=12_myfile
echo ENDED %TIME% %DATE%> SUCCESS_%fn%.log
you added a ' ' (space) after fn.
Re: Appending variable to file name problem.
Thank you so much for your help!
Re: Appending variable to file name problem.
You're very much welcome fellow scripter