Search found 3 matches

by N00b13
16 Jul 2015 04:44
Forum: DOS Batch Forum
Topic: Issue passing variable to second batch file.
Replies: 4
Views: 2467

Re: Issue passing variable to second batch file.

before i saw the post was accepted. i did

Code: Select all

set filea=%~1
then referenced %filea% throught the rest of the draft.bat and it worked. Thank you for your help!
by N00b13
15 Jul 2015 12:00
Forum: DOS Batch Forum
Topic: Issue passing variable to second batch file.
Replies: 4
Views: 2467

Re: Issue passing variable to second batch file.

@foxidrive Thank your for the help! It does pass the string "myfile.txt" but I am wanting to pass the %%i. for /f %%i in ('findstr /i /m "draft" DFADV*.*') do echo ..%%1.. will show me on screen what is found (i.e. DFADV999) i want to pass that DFADV999 onto the called bat script...
by N00b13
15 Jul 2015 09:18
Forum: DOS Batch Forum
Topic: Issue passing variable to second batch file.
Replies: 4
Views: 2467

Issue passing variable to second batch file.

Okay so I need to search each file for "draft" (non case sensitive) and call the second bat job with the files it finds having draft in it. echo on :: search files for string draft in each file held in this folder and echoing result to make sure it is finding the file. for /f %%i in ('find...