Starting XP's Windows and FAX Viewer from command line

J

Joe Zygala

I am building an Access 2000 data base of my images, and
want to launch the Windows Picture and FAX Viewer for the
currently selected record's picture. Unfortuately, I
cannot find the command for the viewer. I can launch
Windows Explorer to view the picture via the explorer.exe
command (using the Access Visual Basic Shell command),
but that interface is not what I want. Anybody know how
to launch the picture viewer from a command line?

I tried just entering the name of the file as the
parameter to the Shell command in Access Visual Basic, as
that works from a DOS command prompt, but that did not
work.

Thanks,

Joe
 
R

Ramesh [MVP]

Hi Joe,

rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen <filename>
Example: rundll32.exe shimgvw.dll,ImageView_Fullscreen C:\Test.jpg

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://www.mvps.org/sramesh2k

Windows 2000 Group Policy Registry Table:
http://www.microsoft.com/windows2000/techinfo/reskit/en-us/gp/gpref.asp

I am building an Access 2000 data base of my images, and
want to launch the Windows Picture and FAX Viewer for the
currently selected record's picture. Unfortuately, I
cannot find the command for the viewer. I can launch
Windows Explorer to view the picture via the explorer.exe
command (using the Access Visual Basic Shell command),
but that interface is not what I want. Anybody know how
to launch the picture viewer from a command line?

I tried just entering the name of the file as the
parameter to the Shell command in Access Visual Basic, as
that works from a DOS command prompt, but that did not
work.

Thanks,

Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top