Search found 198 matches

by goodywp
01 Aug 2017 12:53
Forum: DOS Batch Forum
Topic: trim off some characters of lines in txt file
Replies: 5
Views: 2379

Re: trim off some characters of lines in txt file

Problem solved ! instead of using % I used ! it works! Could anyone tell me why ?

Code: Select all

@echo off 

setlocal enabledelayedexpansion

for /f "delims=" %%i in (sch_repl_list_after.txt) do (

    set line=%%i 

    echo !line:~6, 16! >>removed_str.txt
    
)
by goodywp
01 Aug 2017 09:49
Forum: DOS Batch Forum
Topic: trim off some characters of lines in txt file
Replies: 5
Views: 2379

trim off some characters of lines in txt file

Hi all forks, So glad to be in this group and got some replies from you regarding this topic "have a list of folder containing one file for each folder, need to find this file path in another folder/subfolder" Now I had a solution for it but I need to trim off all the ==> for each line in ...
by goodywp
31 Jul 2017 12:19
Forum: DOS Batch Forum
Topic: have a list of folder containing one file for each folder, need to find this file path in another folder/subfolder
Replies: 2
Views: 1212

have a list of folder containing one file for each folder, need to find this file path in another folder/subfolder

I have a task in batch file, prefer batch this time: 1) I had a list of folders (temp) to have each file in each of folder: ex. c:\myfolder\000\1234.S3S c:\myfolder\001\1235.S3S c:\myfolder\002\1236.S3S c:\myfolder\003\1237.S3S c:\myfolder\004\1238.S3S c:\myfolder\005\1239.S3S .........................