2012年6月21日 星期四

How to run windows photo viewer with command line

To start Windows Photo Viewer from command line you would have to use Code:

%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %1

2012年6月19日 星期二

Print PDF with VBScript

Set WshShell = CreateObject("WScript.Shell")    
WshShell.Run chr(34) & "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" _    
    & Chr(34) & " /p /h " & chr(34) & "d:\Temp\p0.600633652182296.pdf" & chr(34), 0    
Set WshShell = Nothing