Thank to dbenham and trebor68!
PS I will remove enabling delayed expansion
Search found 4 matches
- 10 Sep 2011 10:55
- Forum: DOS Batch Forum
- Topic: Counting files in folder and compare with the number.
- Replies: 3
- Views: 3820
- 09 Sep 2011 18:12
- Forum: DOS Batch Forum
- Topic: Counting files in folder and compare with the number.
- Replies: 3
- Views: 3820
Counting files in folder and compare with the number.
Hello, I am trying to count files in the folder and then compare with the number. Cannot make it to work. Your help will be appreciated: SET TotalExpected=8 setlocal enabledelayedexpansion SET count=dir "C:\temp" /a-d /b/s |find /v /c "::" ECHO %count%>totalfiles.log IF %TotalExp...
- 07 Sep 2011 08:12
- Forum: DOS Batch Forum
- Topic: Appending variable to file name problem.
- Replies: 3
- Views: 3767
Re: Appending variable to file name problem.
Thank you so much for your help!
- 07 Sep 2011 01:24
- Forum: DOS Batch Forum
- Topic: Appending variable to file name problem.
- Replies: 3
- Views: 3767
Appending variable to file name problem.
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
Expecting SUCCESS_12_myfile.log
What I am doing wrong? Thanks!
@ECHO OFF
SET fn =12_myfile
echo ENDED %TIME% %DATE%>>SUCCESS_%fn%.log