Search found 9 matches

by Roe5685
30 Oct 2014 08:27
Forum: DOS Batch Forum
Topic: command line printer problem using echo lpt2 commands
Replies: 4
Views: 4845

command line printer problem using echo lpt2 commands

For years I printed from batch files using the following: to set up: Net Use LPT2: "\\asrock-pc\lexmark e260d" & if you like /persistent:yes then applying you put in the batch file echo what a nice day > LPT2 & the printer prints it. well the above monochrome laser printer died and...
by Roe5685
22 Aug 2014 12:27
Forum: DOS Batch Forum
Topic: parsing file and shortening selected lines
Replies: 5
Views: 4772

Re: parsing file and shortening selected lines

ok thanks i await your correction.
and the search word without the quotes works but suppose the search word is a phrase like "harry is home"
Thanks,
Roe5685
by Roe5685
22 Aug 2014 10:28
Forum: DOS Batch Forum
Topic: parsing file and shortening selected lines
Replies: 5
Views: 4772

Re: parsing file and shortening selected lines

Thank you for your prompt reply. I tried it but it did NOT remove search word ( STOP PRESS removes search word if you do not put " around it ) and it shortened all the lines! ( instead of only the lines containing the search word. ) Here is my revised input: rem >file.txt echo abc old text def1...
by Roe5685
22 Aug 2014 09:00
Forum: DOS Batch Forum
Topic: parsing file and shortening selected lines
Replies: 5
Views: 4772

parsing file and shortening selected lines

i use Dostip's BatchSubstitute.bat to change text in selected lines ( it searches for the old text ) of a file. that works fine. what i want to do now is instead of substituting a new expression for the old text is to eliminate the old text and shorten that line of the file down to the first 25 lett...
by Roe5685
07 Apr 2014 21:30
Forum: DOS Batch Forum
Topic: Fast Division Program
Replies: 9
Views: 12376

Re: Fast Division Program

very powerful and impressive.
thank you as a beginner user.
where are other fast math routines located?
i have add up routines for column totals and they are slow!!
not like this!!
by Roe5685
21 Mar 2014 06:22
Forum: DOS Batch Forum
Topic: i need help with pipe for findstr
Replies: 7
Views: 6975

Re: i need help with pipe for findstr

thanks for the more than 9 % commands points. i tested the FOXIDRIVE method and it works fine with 4. i was amazed how long you can make the DIR line! dir c:\%1 c:\%2 c:\%3 c:\%4 d:\%1 d:\%2 d:\%3 d:\%4 f:\%1 f:\%2 f:\%3 f:\%4 g:\%1 g:\%2 g:\%3 g:\%4 h:\%1 h:\%2 h:\%3 h:\%4 /s /a-d >> yyy.doc howeve...
by Roe5685
20 Mar 2014 20:47
Forum: DOS Batch Forum
Topic: i need help with pipe for findstr
Replies: 7
Views: 6975

Re: i need help with pipe for findstr

your dir h:\*.iso h:\*.exe h:\*.com /b /s /a-d is I must say BRILLIANT.
when I looked at this code I said "That will never work!". but it works fine.
Thanks for that.
I guess we could make a batch file with iso etc as 1% 2% and so forth?
by Roe5685
02 Mar 2014 18:27
Forum: DOS Batch Forum
Topic: i need help with pipe for findstr
Replies: 7
Views: 6975

Re: i need help with pipe for findstr

you say it not quite clear what i WANT TO DO. you see that using a text file or by manual typing in you get findstr processing from the dir command say iso com and exe. i.e. it will find all of files with these endings on your hard drive. the $ sign limits findstr to looking at the end of the file n...
by Roe5685
02 Mar 2014 15:08
Forum: DOS Batch Forum
Topic: i need help with pipe for findstr
Replies: 7
Views: 6975

i need help with pipe for findstr

FindStrDrive(4) = "dir h:\ /s | findstr /i /g:FindSpec.txt" 'this works nicely could have 10 tokens! FindStrDrive(0) = "dir h:\ /s | findstr /i " " iso$ com$ exe$ " " " works nicely too. again could have 10 tokens. FindStrDrive(0) = "dir h:\ /s | findstr ...