Search found 1 match

by ilugopal
23 Sep 2016 15:37
Forum: DOS Batch Forum
Topic: if loop
Replies: 1
Views: 1433

if loop

Hi all - I'm writing a batch script for the first time. Its a learning experience. However i need to some help on accomplish my thought process as google is not all. FOR %%i in (%OneTime_Dir%\\*.sql) DO ( SET FileName=%%~ni Set first2=!FileName:~0,2! echo !FileName! echo !first2! IF "!first2!&q...