open Windows Picture and Fax Viewer via batch

Home made / NONE
July 28, 2009 at 06:18:36
Specs: Windows XP, 2.8 ghz / 2 gig
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?


See More: open Windows Picture and Fax Viewer via batch

Report •


#1
July 28, 2009 at 08:10:58
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.


Report •

#2
July 28, 2009 at 10:59:48
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


Report •

#3
July 28, 2009 at 11:06:31
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.


Report •

Related Solutions

#4
July 28, 2009 at 13:00:37
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.


Report •


Ask Question