Search found 7 matches

by mrmattmc
06 Mar 2014 01:43
Forum: DOS Batch Forum
Topic: Get Default Printer-Output to temp-Restore Default printer
Replies: 9
Views: 10073

Re: Get Default Printer-Output to temp-Restore Default print

Works Great. Nice fairly automated little pdf printer installer/swapper/restorer. Give it a whirl. I intend on running it from a jump drive so I don't have to print a bunch of work documents just to scan them and email them later (with a massive decrease in file sizes to boot). You will need pdf24-c...
by mrmattmc
05 Mar 2014 20:39
Forum: DOS Batch Forum
Topic: Get Default Printer-Output to temp-Restore Default printer
Replies: 9
Views: 10073

Re: Get Default Printer-Output to temp-Restore Default print

That did it. Thanks man. After my burnt out brain cools off I'll put the whole script together and post it.

From

IF PDFPrinter==PDF24 PDF

to

IF "%PDFPrinter%"=="PDF24 PDF"

Was wondering if maybe whittling would be a less frustrating hobby...
by mrmattmc
05 Mar 2014 19:57
Forum: DOS Batch Forum
Topic: Get Default Printer-Output to temp-Restore Default printer
Replies: 9
Views: 10073

Re: Get Default Printer-Output to temp-Restore Default print

So this batch file is coming together nice and slow. I think I am down to my last challenge... I have successfully used the set "PDFPrinter=%%b" to display with echo the default printer as well as allow me to retrieve the original default printer like so.. wmic printer where name='%defprin...
by mrmattmc
05 Mar 2014 16:00
Forum: DOS Batch Forum
Topic: Get Default Printer-Output to temp-Restore Default printer
Replies: 9
Views: 10073

Re: Get Default Printer-Output to temp-Restore Default print

Got this code working! It gets the original default printer and sets it as defprint displays the default printer as defprint sets default to PDF24 PDF set default printer back to defprint I put the pauses in for testing/verification for /f "tokens=2,* delims=," %%a in ('"wmic printer ...
by mrmattmc
05 Mar 2014 11:54
Forum: DOS Batch Forum
Topic: Get Default Printer-Output to temp-Restore Default printer
Replies: 9
Views: 10073

Re: Get Default Printer-Output to temp-Restore Default print

That's a lot cleaner method than using the registry and it works great to display the default printer on my test pc's. Do you know how to output that to a temp file or set it as a var for later use? Such as TYPE %TEMP%.\defprint Would like to call that with something like this wmic printer where nam...
by mrmattmc
05 Mar 2014 02:03
Forum: DOS Batch Forum
Topic: Get Default Printer-Output to temp-Restore Default printer
Replies: 9
Views: 10073

Re: Get Default Printer-Output to temp-Restore Default print

Thanks for the reply I will not have network printers as these are "specially isolated" pc's that only have local printers. Managing print jobs is not a goal of the batch file. Just managing the default printer/installing the pdf printer. I was playing with the below code that returns the ...
by mrmattmc
05 Mar 2014 00:34
Forum: DOS Batch Forum
Topic: Get Default Printer-Output to temp-Restore Default printer
Replies: 9
Views: 10073

Get Default Printer-Output to temp-Restore Default printer

I have been spending quite a bit of time researching and building some batch files to reside on a jump drive. I have it down to a single file that ask the user many questions and is far from idiot proof. My purpose is to create a jump drive that allows the user to install a pdf printer if needed, ch...