Search found 189 matches

by goodywp
11 Sep 2017 08:56
Forum: DOS Batch Forum
Topic: Search all the items listed in a file against all versions of sub folders till found
Replies: 3
Views: 1447

Search all the items listed in a file against all versions of sub folders till found

I had this requirements for a while. And I also tried some solution with 2 or 3 steps. I am still wondering if any good solution can be reached. Requirement: input: a list of files (which can be search from mainly 3 sub folders). input 500007011000.S3S 500008011000.S3S 500022010300.S3S 500009011000....
by goodywp
06 Sep 2017 13:08
Forum: DOS Batch Forum
Topic: Batch delete certain files only certain file exist in subfolder
Replies: 6
Views: 1311

Re: Batch delete certain files only certain file exist in subfolder

Hi Squashman,

It is indeed the simplest form I can look for so far! and best of all it works as expected!!

A big thanks to both of you and Steffen for quick replies....

I am blessed by this forum that I had genuine help...

Cheers!
by goodywp
06 Sep 2017 12:07
Forum: DOS Batch Forum
Topic: Batch delete certain files only certain file exist in subfolder
Replies: 6
Views: 1311

Re: Batch delete certain files only certain file exist in subfolder

Hi Squashman, Here is the example: ..\Customer Download\TETRA\TELIUM3\TSA 8295010512_TSA.M70 8295010512_TSA.P3P 8295010512_TSA.P3P.jsat 8295010512_TSA.P3P.pkg Contents.lst Schemes to Sign_for_829501.doc ..\Customer Download\TETRA\TELIUM3\KIA 8295000512_KIA.M70 8295000512_KIA.P3A 8295000512_KIA.P3A.j...
by goodywp
06 Sep 2017 11:35
Forum: DOS Batch Forum
Topic: Batch delete certain files only certain file exist in subfolder
Replies: 6
Views: 1311

Batch delete certain files only certain file exist in subfolder

I just want a batch file to delete all files with extension *.P3? in all subfolders on condition of only some file exist in these subfolders like *.pkg file for example: C:\test\abc\*.P3A C:\test\abc\*.pkg C:\test\def\*.P3L C:\test\ghi\*.P3P C:\test\ghi\*.pkg So the batch run results should be as be...
by goodywp
06 Sep 2017 11:30
Forum: DOS Batch Forum
Topic: how to read info (strings) from txt file output variable?
Replies: 15
Views: 2522

Re: how to read info (strings) from txt file output variable?

You are the expert! Thanks tons to you!!! Now the requirement is fully implemented! Hopefully it shall works on all sort of these txt files. There is some variations in lines and spaces of this txt file. But the main function is to catch the component info with ""Schemes to Sign_for_Tetra_...
by goodywp
06 Sep 2017 08:18
Forum: DOS Batch Forum
Topic: how to read info (strings) from txt file output variable?
Replies: 15
Views: 2522

Re: how to read info (strings) from txt file output variable?

Thanks again Steffen!!! Actually after I try to send the attachment again, just realized it is not allowed saying " The extension txt is not allowed" That means yesterday I did not send it successfully. Tried different extension and lastly rename it without extension just got the same comp...
by goodywp
05 Sep 2017 13:42
Forum: DOS Batch Forum
Topic: how to read info (strings) from txt file output variable?
Replies: 15
Views: 2522

Re: how to read info (strings) from txt file output variable?

Here is the txt as below: also it is attached ----------------- Read me - how to use this package --------------- ------------------------------------------------------------------- Note: -------------------------------------------------------------------- -------------------------------------------...
by goodywp
05 Sep 2017 08:08
Forum: DOS Batch Forum
Topic: how to read info (strings) from txt file output variable?
Replies: 15
Views: 2522

Re: how to read info (strings) from txt file output variable?

Perfect!!! it works exactly as expected! Cheers! I got the following as expected. data_1 KIA, 111.P3A.pkg, \abc\KIA , 1111.P3A, T501-08680-0101 data_2 FOO, 222.P3A.pkg, \abc\FOO , 2222.P3A, T501-08680-0102 data_3 BAR, 333.P3A.pkg, \abc\BAR , 3333.P3A, T501-08680-0103 Now I also try to do as you sugg...
by goodywp
01 Sep 2017 08:46
Forum: DOS Batch Forum
Topic: how to read info (strings) from txt file output variable?
Replies: 15
Views: 2522

Re: how to read info (strings) from txt file output variable?

Thanks soooooo much Steffen !!!! tried it out and got the results as below: KIA 111.P3A.pkg \abc\KIA 1111.P3A T501-08680-0101 BAR 333.P3A.pkg \abc\BAR 3333.P3A T501-08680-0103 since component FOO has no value next to file to be signed. After I added some value it shows as expected: KIA 111.P3A.pkg \...
by goodywp
31 Aug 2017 07:55
Forum: DOS Batch Forum
Topic: how to read info (strings) from txt file output variable?
Replies: 15
Views: 2522

Re: how to read info (strings) from txt file output variable?

You are right! I can avoid to have only 4 lines. every component must have 5 lines. So my thoughts would be to have a couple of batch files to do following: 1) to pickup those blocks which has "schemes required for signing", can I do it? 2) to read the 5 lines as variable for each block (a...
by goodywp
30 Aug 2017 07:47
Forum: DOS Batch Forum
Topic: how to read info (strings) from txt file output variable?
Replies: 15
Views: 2522

Re: how to read info (strings) from txt file output variable?

Thanks Steffen for asking. It is everything in one file. It is real file. In this file, there are some components need to be picked up if saying "schemes required for signing". Yes, it is usually 5 parts need to be picked up for that component: the following is a example, usually component...
by goodywp
29 Aug 2017 13:47
Forum: DOS Batch Forum
Topic: how to read info (strings) from txt file output variable?
Replies: 15
Views: 2522

how to read info (strings) from txt file output variable?

I have a question: 1) to read from txt file to extract some info as variable, output as either txt file or variable.bat so it can be used by the other batch files for processing 2) currently I only found from internet, we can get a entire line containing that wanted string or info. After that we nee...
by goodywp
22 Aug 2017 07:51
Forum: DOS Batch Forum
Topic: How to search files from one folder to next till found
Replies: 8
Views: 1811

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

I tried the following code to do the search and it works but only one folder. In case it searched all the files in the unique.txt that is fine. But if it has some files not found. It should print out the missing ones then continue to search another folder... How can I do search one folder to another...
by goodywp
19 Aug 2017 05:36
Forum: DOS Batch Forum
Topic: How to search files from one folder to next till found
Replies: 8
Views: 1811

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

Hi Hackoo, I think I have two tasks in all. 1. to search all the files path based on the plain files list like this 500135010100.S3S 500136010100.S3S 500143010002.S3S 500019011200.S3S 500006011000.S3S 500007011000.S3S 500008011000.S3S 500009011000.S3S to get the list.txt with path in it, like the on...
by goodywp
17 Aug 2017 08:45
Forum: DOS Batch Forum
Topic: How to search files from one folder to next till found
Replies: 8
Views: 1811

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

Awesome!!!!! work perfectly... Thanks a lot hackoo!!