Search found 2 matches
- 22 May 2012 03:01
- Forum: DOS Batch Forum
- Topic: Not work as add index on each ".sh" file
- Replies: 4
- Views: 3114
Re: Not work as add index on each ".sh" file
Dear All, I fixed with following. Thanks All. @echo off for /F %%i IN ('dir /b/a-d/s *.sh') do ( set "FileName=%%~ni.sh" call :proc %%i call :proc2 %%i ) goto :eof :proc Set LocationDir=Pong\ set DataFileName=%FileName% setlocal enabledelayedexpansion @echo ################################...
- 22 May 2012 01:00
- Forum: DOS Batch Forum
- Topic: Not work as add index on each ".sh" file
- Replies: 4
- Views: 3114
Not work as add index on each ".sh" file
I need to add some index on each ".sh" file. I try to make a bat file but not work. Anyone can help to fix it? Thanks @echo off setlocal enabledelayedexpansion for /F %i IN ('dir /b/a-d/s *.sh') do ( set FileName=%~ni.sh set DataFileName=%FileName% Set LocationDir=Pong\ //index information...