Search found 189 matches

by goodywp
16 Aug 2017 14:10
Forum: DOS Batch Forum
Topic: why the log file not showing exactly displayed in DOS prompt screen while running a batch file
Replies: 1
Views: 719

why the log file not showing exactly displayed in DOS prompt screen while running a batch file

I have a question. When I run a script, I saw DOS showing some error like these The system cannot find the file specified. The syntax of the command is incorrect. But when I check the log file, it did not see any of these errors since I put this run into a log file, I check some code carefully, did ...
by goodywp
16 Aug 2017 09:54
Forum: DOS Batch Forum
Topic: How to search files from one folder to next till found
Replies: 8
Views: 2167

Re: How to search files from one folder to next till found

list.txt C:\auto_pkg_build\Sources\Source_schemes\TEST\T501-01122-0100-Single-Length-Key-Scheme-Pack\T501-01122-0100\Application_Signing\Signed_Schemes\QASigned_T3\500135010100.S3S C:\auto_pkg_build\Sources\Source_schemes\TEST\T501-01122-0100-Single-Length-Key-Scheme-Pack\T501-01122-0100\Application...
by goodywp
14 Aug 2017 09:20
Forum: DOS Batch Forum
Topic: How to search files from one folder to next till found
Replies: 8
Views: 2167

Re: How to search files from one folder to next till found

Thanks Hackoo so much. I did not put the requirement clearly in the previous post. I have a list of *.S3S file in one list.txt What I want is to search all these *.S3S file from the list.txt then copy to a new folder.. I tried your code: @echo off Title Searching for *.S3S files paths and copy them ...
by goodywp
11 Aug 2017 15:11
Forum: DOS Batch Forum
Topic: How to search files from one folder to next till found
Replies: 8
Views: 2167

How to search files from one folder to next till found

Hi all, Is any way to search files from one folder to another folder till found. Say, I have ../folder1/file1.txt ../folder1/file2.txt ../folder1/file3.txt ../folder2/file1.txt ../folder2/file2.txt ../folder2/file4.txt ../folder3/file1.txt ../folder4/file2.txt ../folder5/file5.txt assume folder name...
by goodywp
03 Aug 2017 08:11
Forum: DOS Batch Forum
Topic: trim off some characters of lines in txt file
Replies: 5
Views: 2007

Re: trim off some characters of lines in txt file

Thanks so much elzooilogicofor your detailed explanation with sample. that helps us a lot in terms of why that works that way... :D
by goodywp
02 Aug 2017 08:39
Forum: DOS Batch Forum
Topic: trim off some characters of lines in txt file
Replies: 5
Views: 2007

Re: trim off some characters of lines in txt file

Thanks Penpen! How to make the above code works by using % if possible
by goodywp
01 Aug 2017 12:53
Forum: DOS Batch Forum
Topic: trim off some characters of lines in txt file
Replies: 5
Views: 2007

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: 2007

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: 1004

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 .........................