Ask Leo!

launching a photo from the command line

Search First! Then browse: Mailbag Archive | Ask Leo! Categories | Ask Leo! Archive | Newsletter

From Leo's mailbag:

> From: A Computer User
> Sent: March 2, 2006
> To: Ask Leo!
> Subject: launching a photo from the command line
>
> Leo,
> --------------
> I need to launch a .jpg from the command line using the
> "Windows picture and Fax Viewer" On my Windows 2000 server
> the command was "C:\Program Files\Common Files\Microsoft
> Shared\PhotoEd\photoed.exe c:\temp\test.jpg" but we are
> moving to Windows 2003 and photoed.exe no longer exist. From
> what I've read it looks like it uses
> C:\WINDOWS\System32\shimgvw.dll. Can you help.

I believe you can just "pretent" the .jpg is a program,
and execute. By that I mean, at the command prompt:

[C:\] c:\temp\test.jpg

may well do exactly what you want.

I know I do it all the time myself.


Thanks for asking,

Leo

Article 1139