NirCmd Command Reference - shexec

shexec [operation] [filename]
Opens or Prints a filename according to the definition of the file extension in the Registry. For example: a filename with .doc extension will be opened with MS-Word, a filename with .html extension will be opened with your default browser. If you specify a valid web site address, the Web site will be opened in your default browser. the [operation] parameter can be "open" or "print".
Examples:
shexec "open" "c:\my documents\abc.doc"
shexec "print" "d:\files\1.pdf"
shexec "open" "http://www.nirsoft.net"

Other commands:
abortshutdownbeepcdromchangeappvolumechangebrightness
changesysvolumechangesysvolume2clipboardclonefiletimecloseprocess
cmdshortcutcmdshortcutkeycmdwaitconsolewriteconvertimage
convertimagesdebugwritedlgdlganyelevate
elevatecmdemptybinexecexec2execmd
exitwinfilldeletegachibernateinetdial
infoboxinidelsecinidelvalinisetvalinitshutdown
killprocesslockwsloopmediaplaymemdump
monitormovecursormultiremotemuteappvolumemutesubunitvolume
mutesysvolumeparamsfileqboxqboxcomqboxcomtop
qboxtoprasdialrasdialdlgrashangupregdelkey
regdelvalregeditregsetvalregsvrremote
restartexplorerreturnvalrunassavescreenshotsavescreenshotfull
savescreenshotwinscreensaverscreensavertimeoutscriptsendkey
sendkeypresssendmouseservicesetappvolumesetbrightness
setconsolecolorsetconsolemodesetcursorsetcursorwinsetdefaultsounddevice
setdialuplogonsetdisplaysetfilefoldertimesetfiletimesetprimarydisplay
setprocessaffinitysetprocessprioritysetsubunitvolumedbsetsysvolumesetsysvolume2
setvolumeshellcopyshellrefreshshexecshortcut
showsounddevicesspeakstandbystdbeepsysrefresh
trayballoonurlshortcutwaitwaitprocesswin

NirCmd Web Page

Download NirCmd

NirSoft Web Site