Search found 8 matches
- 31 Jan 2012 03:06
- Forum: DOS Batch Forum
- Topic: Adding line count number to find results
- Replies: 3
- Views: 3836
Re: Adding line count number to find results
Thanks for the reply... Had to change the first find to a findstr as it was counting the file location with the find command output as a line.. But it works.. findstr "Company" "%INPUT_DIR%\%INPUT_FILE%" | find /v /n "" >> %OUTPUT_DIR%\%OUTPUT_FILE% Thanks again.. Jaz
- 30 Jan 2012 10:53
- Forum: DOS Batch Forum
- Topic: Adding line count number to find results
- Replies: 3
- Views: 3836
Adding line count number to find results
Hi, I'm wondering if there's a way to add the the line number to the beginning of the below find command.. I don't mean using the /N action as it gives the line number placement in the file.. I'm looking for the count result number.. for example if there were 50 results, it would output the number 1...
- 08 Jul 2011 10:08
- Forum: DOS Batch Forum
- Topic: Passing variable from one batch file to another..
- Replies: 3
- Views: 9439
Re: Passing variable from one batch file to another..
Ok, maybe I didn't explain it too good.. I have a main.bat file with the below set "DIR1=C:\vartest1" set "DIR2=C:\vartest2" set "program=test.bat" call %program% > teste_create.log 2>&1 test.bat echo Creating Directories mkdir %DIR1% mkdir %DIR2% If I run the mail....
- 08 Jul 2011 09:36
- Forum: DOS Batch Forum
- Topic: Passing variable from one batch file to another..
- Replies: 3
- Views: 9439
Passing variable from one batch file to another..
Hi, I'm not sure if this is possible with batch files but can a set of variables be passed from one batch file to another.. The idea is to have one main batch file which will in turn call some sub batch files.. The main batch file will have some variables set up so I'm wondering can the called sub b...
- 07 Jul 2011 13:57
- Forum: DOS Batch Forum
- Topic: Move command question
- Replies: 7
- Views: 7024
Re: Move command question
Cool, thanks again.. I'll have a read up on the command index now..
- 07 Jul 2011 13:12
- Forum: DOS Batch Forum
- Topic: Move command question
- Replies: 7
- Views: 7024
Re: Move command question
Just did a quick test and it works great..
Thanks a mil for your help..
EDIT**
Actually, would you mind explaining what the below is doing?
Thanks a mil for your help..
EDIT**
Actually, would you mind explaining what the below is doing?
Code: Select all
usebackq delims=" %%a in
- 07 Jul 2011 12:44
- Forum: DOS Batch Forum
- Topic: Move command question
- Replies: 7
- Views: 7024
Re: Move command question
Hi,
At the minute it's just in a txt file in the following format:
About.bmp
ACTDATA.CSV
APPTRACK.EXE
ARA_FIHI.CSV
and so on...
At the minute it's just in a txt file in the following format:
About.bmp
ACTDATA.CSV
APPTRACK.EXE
ARA_FIHI.CSV
and so on...
- 07 Jul 2011 12:27
- Forum: DOS Batch Forum
- Topic: Move command question
- Replies: 7
- Views: 7024
Move command question
Hi all,
I'm wondering is it possible to do a dos move using an input file.. I've 400+ files to move from one dir to another and thought it might be a bit cleaner if I could use a txt file as the input but not sure if thats possible..
Any help would be appreciated..
Thanks...
I'm wondering is it possible to do a dos move using an input file.. I've 400+ files to move from one dir to another and thought it might be a bit cleaner if I could use a txt file as the input but not sure if thats possible..
Any help would be appreciated..
Thanks...