Computing.Net > Forums > Windows XP > open Windows Picture and Fax Viewer via batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

open Windows Picture and Fax Viewer via batch

Reply to Message Icon

Name: pball
Date: July 28, 2009 at 06:18:36 Pacific
OS: Windows XP
CPU/Ram: 2.8 ghz / 2 gig
Product: Home made / NONE
Subcategory: General
Comment:

I made a little batch script to open drawings at work since I don't care for the program to do that. I've made it so you can switch between two programs to open the pictures in but I can't get the default windows picture viewer to work.

I looked up how the viewer is opened in the file type properties and got this.
c:\windows\system32\rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen

pasting that into a cmd prompt will launch a blank instance of it, but putting the location of a picture following that does nothing. Anyone know how to start that viewer with a picture?



Sponsored Link
Ads by Google

Response Number 1
Name: pball
Date: July 28, 2009 at 08:10:58 Pacific
Reply:

ok so it seems the site changed how threads are posted so this ended up here instead of in the programming section. why would hitting new thread in the programming section not create a new thread in the programming section?

They also seemed to remove the mandatory review before posting.


0

Response Number 2
Name: kptech
Date: July 28, 2009 at 10:59:48 Pacific
Reply:

It worked for me, but only when I specified the full path to the picture file, even if the picture file was located in the current directory.

For example, if picture.jpg is located in the current directory (d:\pictures)...

This worked:
D:\Pictures>c:\windows\system32\rundll32 c:\windows\system32\shimgvw.dll,imageview_fullscreen d:\pictures\picture.jpg

This didn't:
D:\Pictures>c:\windows\system32\rundll32 c:\windows\system32\shimgvw.dll,imageview_fullscreen picture.jpg

Is it possible that you didn't provide the full path with the filename?

-- kptech


0

Response Number 3
Name: kptech
Date: July 28, 2009 at 11:06:31 Pacific
Reply:

I just noticed you said "the location" of a picture. I thought I'd mention that I also tried supplying just the directory name like this:

C:\>c:\windows\system32\rundll32 c:\windows\system32\shimgvw.dll,imageview_fullscreen d:\pictures

The above launched the Windows Picture & Fax viewer and opened the first picture file in the directory. I could then advance forward/backwards through all the pictures in that directory using the arrow buttons at the bottom of the window.


0

Response Number 4
Name: pball
Date: July 28, 2009 at 13:00:37 Pacific
Reply:

Thanks.

I just tried again and it worked as it did for you, but it didn't work in my script and it must be how the script works I guess.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: open Windows Picture and Fax Viewer via batch

Windows picture and fax viewer www.computing.net/answers/windows-xp/windows-picture-and-fax-viewer/130340.html

damn windows picture and fax viewer www.computing.net/answers/windows-xp/damn-windows-picture-and-fax-viewer/8771.html

Windows picture and fax viewer www.computing.net/answers/windows-xp/windows-picture-and-fax-viewer/43073.html