Tech Support Forum banner

DOS- Giving command output to variables

1474 Views 0 Replies 1 Participant Last post by  Tigers!
Gudday all
I have been asked to write some DOS batch files for my new employer. It's been years since I had to write DOS and I have lost/misplaced my DOS manuals.
Currently my latest quirk is that I am outputing this string manipulation to a file.
Code:
findstr /c:"P & P Backup" check_drv-1.out  > check_drv-2.out
I am sure that I should be able to have it assigned to a variable instead but I am blowed if I can think of how to do it? :4-dontkno

Can anyone help me?
Status
Not open for further replies.
1 - 1 of 1 Posts
1 - 1 of 1 Posts
Status
Not open for further replies.
Top