Hello,
@!K: Thank you, it works.
Viper
Search found 2 matches
- 03 May 2010 01:51
- Forum: DOS Batch Forum
- Topic: string substituation within for loop
- Replies: 2
- Views: 4133
- 03 May 2010 00:15
- Forum: DOS Batch Forum
- Topic: string substituation within for loop
- Replies: 2
- Views: 4133
string substituation within for loop
Hello, i want to decrypt every file within a folder. For this task i need the filename without the directory part. So i tried the following: @echo off SET SrcDir=C:\scripts\SrcDir SET DestDir=C:\scripts\DestDir for %%D in ("%SrcDir%"\*.*) do ( SET FILE=%%D SET FILE=%file:C:\Scripts\SrcDir\...