A collection of
Command Line Switches
and arguments to control some program executables
On this page I will collect command line switches for some program executables.This will make it easier to create reliable "quick-and-dirty" batch files to perform common tasks like printing, file conversion, etcetera without the need to dig into the program's COM object details.
Most programs open a file if its full path is specified on the command line without any switches.
Most files' "Open", "Print" and "PrintTo" commands can be found in the registry under
HKEY_CLASSES_ROOT, or by examining file associations, the others may require some web searching, or even reading software manuals. Command line switches for:
- Microsoft Access
- Adobe Reader
- AVG Antivirus
- CDBurnerXP
- Canon's Digital Photo Professional
- Excel
- Mozilla Firefox
- Foxit Reader
- Internet Explorer
- IrfanView
- MagicISO
- Nero Burning ROM
- Notepad
- OpenOffice
- PowerPoint
- PowerPoint Viewer
- Corel Presentations
- Corel Quattro Pro
- Microsoft RAW Image Viewer
- Mozilla Thunderbird
- Sunbelt VIPRE Antivirus + Antispyware
- Visio
- Microsoft Word
- Wordpad
- WordPerfect
- Microsoft XPS Viewer
- Related Stuff
Samples, alternatives and to-be-investigated
Microsoft Access
Open a Microsoft Access database:
Convert a database from a previous Access version to the current version:
msaccess.exe DatabaseOpen an Access database for exclusive access:
msaccess.exe Database /exclOpen an Access database for read-only access:
msaccess.exe Database /roCompact and repair an Access database:
msaccess.exe OriginalDatabase /compact [ CompactedDatabase ]If no
CompactedDatabase is specified, the OriginalDatabase will be overwritten.Convert a database from a previous Access version to the current version:
msaccess.exe OldDatabase /convert NewDatabaseSources with more details:
- How to use command-line switches in Microsoft Access (MS Access 1.0..97)
- How to use command-line switches in Microsoft Access (MS Access 2000..2003)
- Command-line switches for Access (MS Access 2007)
Adobe Reader
Open a PDF file:
Sources with more details:
Tested with Adobe Reader 8.1.2 on Microsoft Windows XP Professional SP2 (5.1.2600)
AcroRd32.exe PdfFileOpen a PDF file in a new instance of Adobe Reader:
AcroRd32.exe /N PdfFileOpen a PDF file at page 7:
AcroRd32.exe /A "page=7=OpenActions" PdfFileOpen a PDF file with navigation pane active, zoom out to 50%, and search for and highlight the word "batch":
AcroRd32.exe /A "zoom=50&navpanes=1=OpenActions&search=batch" PdfFilePrint a PDF file with dialog:
AcroRd32.exe /P PdfFilePrint a PDF file silently:
AcroRd32.exe /N /T PdfFile PrinterName [ PrinterDriver [ PrinterPort ] ]The last command will open a new Adobe Reader window, print the PDF file and then terminate its window unless that window happens to be the only Adobe Reader window left: at least one Adobe Reader window will be left open.
Sources with more details:
Tested with Adobe Reader 8.1.2 on Microsoft Windows XP Professional SP2 (5.1.2600)
AVG Antivirus
Scan and clean a file (scan inside archives and alternate data streams too):
Sources with more details:
Tested with AVG Antivirus version 8.0.145 (engine 8.0.0) on Microsoft Windows XP Professional SP3 (5.1.2600)
avgscanx.exe /scan=file /ext=* /arc /ads /cleanThoroughly scan and clean the entire computer:
avgscanx.exe /comp /ext=* /reg /boot /proc /macrow /pup /arc /ads /cleanRun a high priority quick test on the computer, take no action, and report the results including password protected archives:
avgscanx.exe /comp /qt /priority=high /pwdw /report=d:\avgreport.txtScan all files in directory d:\datadir, move infected files to the virus vault, report the results:
avgscanx.exe /scan=d:\datadir /ext=* /trash /report=d:\avgreport.txtUpdate virus definitions:
avgupd.exe
| Notes: | (1) | Use avgscana.exe for Intel 64 bits processors. |
| (2) | Return codes: 0: everything is o.k. 1: user cancelled/interrupted test 2: any error during the test - cannot open file etc. 3: change identified 4: suspicion detected by heuristic analysis 5: virus found by heuristic analysis 6: specific virus detected 7: active virus in memory detected 8: AVG corrupted 9: double extension 10: archive contains password protected files |
Tested with AVG Antivirus version 8.0.145 (engine 8.0.0) on Microsoft Windows XP Professional SP3 (5.1.2600)
CDBurnerXP
Open a CDBurnerXP compilation file:
Source with more details:
Tested with CDBurnerXP Pro 4.1.1.660 on Microsoft Windows XP Professional SP2 (5.1.2600)
cdbxp.exe /od CdbxpCompilationFileList all CD/DVD writers:
cdbxpcmd.exe --list-drivesEject the disk in the first CD/DVD writer (device 0):
cdbxpcmd.exe --eject [ -device:0 ]Load the disk in the first CD/DVD writer (device 0):
cdbxpcmd.exe --load [ -device:0 ]Erase the disk in the first CD/DVD writer (device 0):
cdbxpcmd.exe --erase [ -device:0 ]Unfortunately, so far, I haven't been able to burn a CD with
cdbxpcmd.exe yet.Source with more details:
Tested with CDBurnerXP Pro 4.1.1.660 on Microsoft Windows XP Professional SP2 (5.1.2600)
Digital Photo Professional
Open the d:\photos folder in DPP, and display directory tree:
DPPViewer.exe /path d:\photos /tree:onOpen the last used folder in DPP, do not display directory tree:
DPPViewer.exe /tree:offTested with Canon's Digital Photo Professional 3.7.2.0 on Microsoft Windows XP Professional SP3 (5.1.2600) and Microsoft Windows 7 Ultimate RC (6.1.7100)
Excel
Open an Excel spreadsheet:
excel.exe ExcelSpreadsheetOpen an Excel spreadsheet in read-only mode:
excel.exe /r ExcelSpreadsheetOpen an Excel spreadsheet in safe mode:
excel.exe /s ExcelSpreadsheetor:
excel.exe /safemode ExcelSpreadsheetSources with more details:
- Description of the startup switches for Excel (MS Excel 97..2003)
- Command-line switches for Microsoft Office Excel (MS Excel 2007)
Mozilla Firefox
Open an url in the browser:
Open an url in a new tab in the browser:
Tested with Mozilla Firefox 3.0.4 on Microsoft Windows XP Professional SP3 (5.1.2600)
firefox.exe -url www.mozilla.comor:
firefox.exe www.mozilla.comOpen Firefox in safe mode (all add-ons disabled for this session only):
firefox.exe -safe-mode www.mozilla.com
| Note: | Won't work if another instance of Firefox is running. |
firefox.exe -new-tab www.mozilla.comOpen an url in a new browser window:
firefox.exe -new-window www.mozilla.comSearch using Firefox' default search engine:
firefox.exe -search "batch files"Make Firefox the default browser:
firefox.exe -setDefaultBrowserSources with more details:
| Note: | You may want to experiment with these switches. On some systems, besides opening a specified URL, I couldn't get any of these switches working. This may have be caused by one or more add-ons, or it may not... |
Foxit Reader
Open a PDF file:
Force Internet Explorer and Firefox to open PDF files inside the browser window:
Source with more details:
"Foxit Reader.exe" PdfFileOpen a PDF file at page 7:
"Foxit Reader.exe" PdfFile -n 7Make Foxit Reader the default PDF reader:
"Foxit Reader.exe" -RegisterPrint a PDF file silently to the default printer:
"Foxit Reader.exe" /p PdfFilePrint a PDF file silently to an alternative printer:
"Foxit Reader.exe" /t PdfFile PrinterNameThe next 2 undocumented switches were discovered by Wolfgang Eitel with the aid of SysInternals' ProcessMonitor:
Force Internet Explorer and Firefox to open PDF files inside the browser window:
"Foxit Reader.exe" -displayinbrowserForce Internet Explorer and Firefox to open PDF files outside the browser window:
"Foxit Reader.exe" -undisplayinbrowser
| Notes: | (1) | The /p and /t switches are case sensitive, the -n switch is not. |
| (2) | Though the Foxit Reader 3.0 Manual suggests otherwise, in version 3.0 the /p and /t switches must be placed at the beginning of the command line, before the file name. |
- Page 143 of the Foxit Reader 3.0 Manual
Internet Explorer
Open an URL in Internet Explorer:
That is where Internet Explorer's "Explorer mode" comes to the rescue:
use
As of IE 7 this workaround may no longer work, as the
You may want to try this "direct" approach first:
Open Internet Explorer in kiosk mode:
Tested with Internet Explorer 5..7 on Microsoft Windows 2000 & XP Professional, and with Internet Explorer 8 on Microsoft Windows 7 RC (64-bits)
iexplore.exe urlOpen Internet Explorer without add-ons (IE 7 and later versions only):
iexplore.exe -extoff [ url ]Open Internet Explorer in Windows Explorer mode (IE 7 and earlier versions only):
iexplore.exe -e FolderIt is not possible to start a Windows Explorer window with alternate credentials.
That is where Internet Explorer's "Explorer mode" comes to the rescue:
use
RUNAS and IE's -E switch to start an Explorer look-alike window with alternate credentials.Folder can be in "drive:\path" or UNC format.As of IE 7 this workaround may no longer work, as the
-e switch became obsolete (though it still does work on my Windows 7 (64-bits) system).You may want to try this "direct" approach first:
explorer.exe /separate[,Folder]This works in Windows 7 (64-bits), not sure about other Windows versions though.
Open Internet Explorer in kiosk mode:
iexplore.exe -k [ url ]Source with more details:
Tested with Internet Explorer 5..7 on Microsoft Windows 2000 & XP Professional, and with Internet Explorer 8 on Microsoft Windows 7 RC (64-bits)
IrfanView
Open a graphics file:
Sources with more details:
i_view32.exe GraphicsFilePrint a graphics file to the default printer:
i_view32.exe GraphicsFile /printPrint a graphics file to any printer:
i_view32.exe GraphicsFile /print="PrinterName"Convert a JPG file to TIFF:
i_view32.exe FileName.jpg /convert=FileName.tifConvert a JPG file to TIFF, and resize it to 800x600 (but keep the aspect ration):
i_view32.exe FileName.jpg /resize=(800,600) /aspectratio /resample /convert=FileName.tifScan and print a page:
i_view32.exe /scanhidden /printPlay selected JPG files as a slideshow:
i_view32.exe /slideshow=drive\path\img*.jpg /closeslideshowCapture the screen and save it as C:\TEST.JPG:
i_view32.exe /capture=0 /convert=c:\test.jpg
| Note: | All switches must be in lower case. |
- i_options.txt (in IrfanView's program directory)
- IrfanView help file (
HH.EXE "mk:@MSITStore:C:\Program%20Files\IrfanView\i_view32.chm::/hlp_command_line.htm")
MagicISO
MagicISO.exe is the program's GUI executable, but in the same directory where MagicISO.exe is installed, MagicISO's command line tool miso.exe can be found.List all available CD/DVD writers with their ID number and drive letter:
miso.exe NULL -cdQuick erase the disk in the CD/DVD writer with ID number 1:
miso.exe NULL -e 1Create and burn a new ISO file to the CD/DVD writer with ID number 2:
miso.exe ISOFileName.iso -c NewFolder -f NewFolder -a *.* -l3 -l VolumeLabel -be 2
| Notes: | The -c switch creates a folder NewFolder in the root directory of the ISO image, the -f switch makes this new folder the working directory. |
-a *.* adds all files from the current directory, including subdirectories, to the ISO image's working directory. | |
-be 2 tells the program to quick erase the disk in the CD/DVD writer with ID number 2 if it isn't blank, and then burn the ISO image to the disk. | |
If ISOFileName.iso already existed, the files and folder(s) will be added to the existing ISO image. | |
Use -l1 instead of -l3 if you want to restrict file and folder names in the ISO image to their short "8.3 notation". |
miso.exe ISOFileName.iso -f Folder -d FileSpecConvert an existing ISO image to Nero's NRG format:
miso.exe NeroFileName.nrg -conv nrg ISOFileName.isoSources with more details:
- Using MagicISO as ISO Creator
- Using MagicISO as ISO image burner
- Using MagicISO to mount ISO image on Command Line
- Run
miso.exewithout parameters to list the command options available in your MagicISO version.
Nero Burning ROM
nero.exe is Nero Burning ROM's GUI executable, but when Nero is installed, the command line tool NeroCmd.exe will be installed too.For Nero 8,
NeroCmd.exe's location can be found in the registry value HKEY_LOCAL_MACHINE\SOFTWARE\Nero\Shared\LibOpen dialogs
Open Nero Burning ROM in the "Create Bootable CD" dialog:nero.exe /New:BootDisc /Media:CDOpen Nero Burning ROM in the "Burn Image to CD" dialog:
nero.exe NeroImageFile /Dialog:BurnImage /Media:CDOpen Nero Burning ROM in the "CD Copy" dialog:
nero.exe /Dialog:DiscCopy /Media:CDOpen Nero Burning ROM in the "DVD Copy" dialog:
nero.exe /Dialog:DiscCopy /Media:DVD
| Note: | A /W switch may be required when using Nero Express. |
Unattended
List available CD/DVD writers:NeroCmd.exe --listdrivesList drive properties for CD/DVD writer E:
NeroCmd.exe --driveinfo --drivename EList disk properties for CD/DVD in drive E:
NeroCmd.exe --discinfo --drivename EEject the disk from drive E:
NeroCmd.exe --eject --drivename ELoad the disk in drive E:
NeroCmd.exe --load --drivename EQuick erase disk in CD/DVD writer E:
NeroCmd.exe --erase --drivename E --realFull erase disk in CD/DVD writer E:
NeroCmd.exe --erase --entire --drivename E --realWrite a Nero image to CD/DVD writer E:
NeroCmd.exe --write --drivename E --image NeroImageFile --force_erase_disc --realQuick erase a rewritable disk in E: and then write "drive\path\*.*" to it at 4x speed:
NeroCmd.exe --write --drivename E --speed 4 --iso VolumeLabel
--create_iso_fs "drive\path\*.*" --force_erase_disc --real
| Note: | The 2 lines in the command above should be typed as a single line. |
- Club CDFreaks: Nero command line options
Or better still: runNeroCmd.exewithout parameters to list the command options available in your Nero version. - Info Nero 6 Startbefehle
Nero command line switches to start Nero's GUI in specific dialogs (in German)
Notepad
Open a text file in Notepad:
notepad.exe TextFileNameForce Notepad to open a text file as ASCII text:
notepad.exe /A TextFileNamePrint a text file with Notepad (default printer):
notepad.exe /P TextFileNameTested in Microsoft Windows XP Professional SP2 (5.1.2600)
OpenOffice
Open a file in OpenOffice, don't show the splash screen:
Open a document in view (read-only) mode:
soffice.exe -nologo OpenOfficeFileOpen a new text document in OpenOffice:
soffice.exe -writer
| Note: | Use -base for databases, -calc for spreadsheets, -draw for drawings, -impress for presentations, -math for formulas, -web for HTML pages, and -writer for text documents. |
soffice.exe -view OpenOfficeFileStart a presentation:
soffice.exe -show OpenOfficeImpressFilePrint an OpenOffice file silently to any printer:
soffice.exe -pt "PrinterName" OpenOfficeFilePrint multiple OpenOffice text files silently to any printer:
soffice.exe -pt "PrinterName" *.odtSources:
SOFFICE.EXE -?- Command Line Arguments in OpenOffice
- OpenOffice FAQ: Is there a way to print a batch of files without opening each of them in OOo?
PowerPoint
Open a PowerPoint file in Edit mode:
Not tested
powerpnt.exe PowerPointFileOpen a PowerPoint file in Slideshow mode:
powerpnt.exe /S PowerPointFileOpen a print dialog:
powerpnt.exe /P PowerPointFileSilently print a PowerPoint file to any printer:
powerpnt.exe /PT "PrinterName" "" "" "PowerPointFile"Open a PowerPoint file and run an embedded macro:
powerpnt.exe /M PowerPointFile "MacroName"Sources with more details:
Not tested
PowerPoint Viewer
Open a PowerPoint file in Slideshow mode:
pptview.exe PowerPointFileOpen a print dialog (without "splash screen"):
pptview.exe /S /P PowerPointFileSources with more details:
- List of command line switches for PowerPoint 2003 Viewer
- Command-line switches for PowerPoint 2007 and the PowerPoint Viewer 2007
Corel Presentations
Open an existing slideshow or drawing in Presentations:
Tested with Corel WordPerfect Presentations 12.0.0.602 on Microsoft Windows XP Professional SP2 (5.1.2600)
Prwin12.exe PresentationsDrawingOrSlideshowOpen a copy of an existing slideshow or drawing as a new file:
Prwin12.exe /s PresentationsDrawingOrSlideshowOpen Presentations with a new drawing:
Prwin12.exe /bsdOpen Presentations with a new slideshow:
Prwin12.exe /bssSource:
Tested with Corel WordPerfect Presentations 12.0.0.602 on Microsoft Windows XP Professional SP2 (5.1.2600)
Corel Quattro Pro
Open an existing spreadsheet in Quattro Pro, without showing the "splash screen":
Source:
Except for the repair options, tested with Corel Quattro Pro 12.0.0.602 on Microsoft Windows XP Professional SP3 (5.1.2600);
qpw.exe Spreadsheet /nOpen a password protected spreadsheet without the password dialog:
qpw.exe Spreadsheet /spasswordRepair a damaged spreadsheet:
qpw.exe Spreadsheet /r1
| Note: | This will remove all objects from Spreadsheet. If that doesn't fix the file, use the /r2 switch, which will also remove all formulas. |
Except for the repair options, tested with Corel Quattro Pro 12.0.0.602 on Microsoft Windows XP Professional SP3 (5.1.2600);
/n switch also tested with Corel Quattro Pro X4 on Microsoft Windows XP Professional SP3 (5.1.2600) and Microsoft Windows 7 Ultimate RC (6.1.7100)Microsoft RAW Image Viewer
Open a RAW image in the viewer:
Open the RAW Image Viewer's configuration dialog:
RAWSupport.exe RawImageFileOpen the print wizard:
RAWSupport.exe /print RawImageFileOpen a RAW image in the associated editor, if configured:
RAWSupport.exe /edit RawImageFile
| Note: | A RAW image editor is not part of Microsoft's RAW Image Viewer package. |
RAWSupport.exe /configureSource:
- The
RAWSupport.exe /?command
Mozilla Thunderbird
Compose an e-mail message, including attachment:
Open the address book:
Not all command line switches listed in these sources will work in every Thunderbird version.
Tested with Mozilla Thunderbird 2.0.0.14 (20080421) on Microsoft Windows XP Professional SP2 (5.1.2600)
SET Recipients=to="Recipient",cc="CcRecipient",bcc="BccRecipient"
SET Message=subject="MessageSubject",body="MessageBody"
thunderbird.exe -compose %Recipients%,%Message%,attachment="FileToBeAttached"
| Notes: | The SET commands have been used to split up the command, otherwise the full command line for thunderbird.exe wouldn't fit in the browser window. |
Like the mailto: technique, you still need to press the "Send" button to actually send the message. |
thunderbird.exe -addressbookSources with more details:
Not all command line switches listed in these sources will work in every Thunderbird version.
Tested with Mozilla Thunderbird 2.0.0.14 (20080421) on Microsoft Windows XP Professional SP2 (5.1.2600)
Sunbelt VIPRE Antivirus + Antispyware
Run a Quick Scan:
Tested with VIPRE 3.1.1606.1 on Microsoft Windows XP Professional SP3 (5.1.2600)
SBAMCommandLineScanner.exe /scannowquickRun a Deep Scan:
SBAMCommandLineScanner.exe /scannowdeepEnable active protection:
SBAMCommandLineScanner.exe /enableapUpdate virus & spyware definitions:
SBAMCommandLineScanner.exe /updatedefsDisplay VIPRE software version:
SBAMCommandLineScanner.exe /displayvipreversionDisplay local virus & spyware definitions version:
SBAMCommandLineScanner.exe /displaylocaldefversionSource with more details:
Tested with VIPRE 3.1.1606.1 on Microsoft Windows XP Professional SP3 (5.1.2600)
Visio
Open a Visio file without showing the "splash screen":
Not tested
visio.exe VisioFile /nologoOpen the last opened file:
visio.exe /1Open Visio's print dialog:
visio.exe /p VisioFileSilently print a Visio file to any printer:
visio.exe /pt VisioFile PrinterName [ DriverName [ PortName ] ]Sources with more details:
Not tested
Microsoft Word
Open a Word document without "splash screen":
Open Word and create a macro file with the following content (tested in Word 2007 English, you may need to tweak the code for other versions or languages):
From now on, you can print a Word document using the following command:
The
Unfortunately, I haven't found a way yet to hide Word from view during the process.
Sources with more details:
winword.exe WordDocument /qOpen a Word document in safe mode:
winword.exe WordDocument /safeOpen a new Word document based on an existing file:
winword.exe /f WordDocumentPrint a Word document:
Open Word and create a macro file with the following content (tested in Word 2007 English, you may need to tweak the code for other versions or languages):
Sub PrintDefault()
'
' PrintDefault Macro
' Print current document to Default Printer
'
ActiveDocument.PrintOut
ActiveDocument.Close
Application.Quit
End Sub
Save the macro as "PrintDefault" in normal.dot. You only need to do this once.From now on, you can print a Word document using the following command:
winword.exe WordDocument /mPrintDefault /q /nThis command opens WordDocument in Word, prints the document, closes it and exits Word.
The
/q switch suppresses the "splash screen", the /n switch opens a new instance of Word, so WordDocument won't show up in the list of documents in any other open instance.Unfortunately, I haven't found a way yet to hide Word from view during the process.
| Notes: | It is possible to create a macro that prints to an alternative printer instead of the default. Save this macro giving it a logical name, and use that macro in the command to print to that alternative printer. Using macro's on the command line opens up other possibilities too, like saving a file in a different format. Have a go at it! |
- List of Word startup switches (MS Word 2000..2010)
- Command-line switches for Microsoft Office Word 2007
Wordpad
Open a text file (any supported format) in Wordpad:
Source:
write.exe TextFileNamePrint a text file (any supported format) with Wordpad to the default printer:
write.exe /p TextFileNamePrint a text file (any supported format) with Wordpad to any printer:
write.exe /pt TextFileName PrinterName [ DriverName [ PortName ] ]
| Note: | You may use either wordpad.exe or write.exe, both commands will start WordPad. The only difference is that write.exe is located in the %windir%\System32 directory, and hence doesn't need its fully qualified path specified. |
- The
/pswitch was an "educated guess", the/ptswitch was found using the commandSTRINGS wordpad.exe
WordPerfect
Open a file in WordPerfect, without showing the "splash screen":
Open WordPerfect and create a macro file with the following content (tested in WordPerfect 12 English, you may need to tweak the code for other versions or languages):
From now on, you can print a WordPerfect file using the following command:
Unfortunately, I haven't found a way yet to hide WordPerfect from view during the process.
Sources with more details:
Tested with Corel WordPerfect 12.0.0.602 on Microsoft Windows XP Professional SP2 (5.1.2600)
WPWin12.exe : WpFilePrint a WP file:
Open WordPerfect and create a macro file with the following content (tested in WordPerfect 12 English, you may need to tweak the code for other versions or languages):
Application (WordPerfect; "WordPerfect"; Default!; "EN") PrintInColor (State: True!) PrintGraphics (State: False!) PrintWithDocumentSummary (State: False!) PrintCopies (NumberOfCopies: 1) PrintSortOrder (Order: Group!) PrintDestination (Destination: DriverPort!) PrintGraphically (State: False!) PrintTwoSided (Option: LongEdge!) PrintInReverseOrder (State: False!) PrintBooklet (State: False!) PrintAction (Action: FullDocument!) Print () CloseNoSave () ExitWordPerfect ()Save the macro as "PrintAndClose.wcm" in the default location. You only need to do this once.
From now on, you can print a WordPerfect file using the following command:
WPWin12.exe : WpFile /M-PrintAndClose.wcmThis command opens WPFile in WordPerfect, prints the document, closes it and exits WordPerfect.
Unfortunately, I haven't found a way yet to hide WordPerfect from view during the process.
| Notes: | It is possible to create a macro that prints to an alternative printer instead of the default. Save this macro giving it a logical name, and use that macro in the command to print to that alternative printer. Using macro's on the command line opens up other possibilities too, like saving a file in a different format, or converting ("publishing") it to PDF... Have a go at it! |
Tested with Corel WordPerfect 12.0.0.602 on Microsoft Windows XP Professional SP2 (5.1.2600)
Microsoft XPS Viewer
Open a file in XPS Viewer:
XpsRchVw.exe XpsFileLoad a file in XPS Viewer and open the Print dialog:
XpsRchVw.exe XpsFile /pConvert an XPS file to multipage TIFF:
XpsRchVw.exe XpsFile /o:TiffFile.tifConvert an XPS file to multiple PNG files:
XpsRchVw.exe XpsFile /o:PngFile.pngTested with Microsoft XPS Viewer 1.0.6000.16438 on Microsoft Windows XP Professional SP2 (5.1.2600)
Related Stuff
Samples:- Capture.bat
Use IrfanView to append a screen capture to a multi-page TIF file. - PrintDoc.bat
Use Microsoft Word and CMCDDE to print Word documents unattendedly. - PrintPPT.bat
Use PowerPoint or the PowerPoint Viewer to open a print dialog for a powerPoint file. - PrnPDF9.bat
Use Foxit Reader 3 or Adobe Reader 9 to silently print a PDF file.
- Command-line switches for Microsoft Office Project
- Command Line Parameters for Windows Media Player
- GIMP Command Line Arguments
- McAfee VirusScan Command Line
- McAfee: Configuring command-line options
- Command line DDE
Control programs that can act as DDE servers. - ClassExec
A command line utility to execute any command, including DDE commands, associated with a file type or extension.
Use it to open, print, view or edit files, whatever is registered for that file type inHKEY_CLASSES_ROOT. - GetPrint.vbs
Lists non-DDE-based Print and PrintTo commands for all registered file types.
Read the script's on-screen help to find out how to filter the print commands for a specific file type or extension. - PrintDoc.vbs
Neither MS Word, nor the Word Viewer accept print commands from the command line. So that's where this script comes to the rescue.
Based on a script by Arnout van der Vorst, this script prints a specified Word document on the default printer. - Print any file using the "Shell.Application" object