Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Bob Friesenhahn <bfriesen@si...> - 2010-01-30 21:29:19
|
I am looking for a standard Microsoft Windows program which will open a file using the associated program according to the Windows file association subsystem. Basically, I am looking for a way to open an image file via its file association (similar to what happens if a file is double-clicked in the file browser), and do it from the command line. This needs to work for Windows XP and later. Can someone help? Bob -- Bob Friesenhahn bfriesen@..., http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ |
From: Glenn Woodruff <GWoodruff@ci...> - 2010-01-30 21:46:15
|
Hi Bob, I think what you're looking for is: cmd.exe /c filename Thanks, Glenn Woodruff Cine-tal -----Original Message----- From: Bob Friesenhahn [mailto:bfriesen@...] Sent: Saturday, January 30, 2010 4:29 PM To: GraphicsMagick Help Subject: [GM-help] Need a way to open a file by association under Windows I am looking for a standard Microsoft Windows program which will open a file using the associated program according to the Windows file association subsystem. Basically, I am looking for a way to open an image file via its file association (similar to what happens if a file is double-clicked in the file browser), and do it from the command line. This needs to work for Windows XP and later. Can someone help? Bob -- Bob Friesenhahn bfriesen@..., http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------ ------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Graphicsmagick-help mailing list Graphicsmagick-help@... https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help |
From: Bob Friesenhahn <bfriesen@si...> - 2010-01-30 22:27:00
|
On Sat, 30 Jan 2010, Glenn Woodruff wrote: > Hi Bob, > I think what you're looking for is: > cmd.exe /c filename Hmmm, I see that this works if the filename contains the appropriate extension. Unfortunately, when GraphicsMagick creates a temporary file, it does not have a useful extension so it does not work. This approach also seems to cause a dire security problem since it will also invoke executables. Perhaps I should be directly invoking the "Windows Picture and Fax Viewer" instead since it should know how to test to see what the file really is. I seem to be successful with syntax like this: cmd.exe /c rundll32.exe %SystemRoot%\system32\shimgvw.dll,ImageView_Fullscreen file Is there something better? Bob > > Thanks, > Glenn Woodruff > Cine-tal > -----Original Message----- > From: Bob Friesenhahn [mailto:bfriesen@...] > Sent: Saturday, January 30, 2010 4:29 PM > To: GraphicsMagick Help > Subject: [GM-help] Need a way to open a file by association under > Windows > > I am looking for a standard Microsoft Windows program which will open > a file using the associated program according to the Windows file > association subsystem. Basically, I am looking for a way to open an > image file via its file association (similar to what happens if a > file is double-clicked in the file browser), and do it from the > command line. This needs to work for Windows XP and later. > > Can someone help? > > Bob > -- > Bob Friesenhahn > bfriesen@..., > http://www.simplesystems.org/users/bfriesen/ > GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ > > ------------------------------------------------------------------------ > ------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term > contracts > Personal 24x7 support from experience hosting pros just a phone call > away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Graphicsmagick-help mailing list > Graphicsmagick-help@... > https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Graphicsmagick-help mailing list > Graphicsmagick-help@... > https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help > -- Bob Friesenhahn bfriesen@..., http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ |
From: John Pye <john@cu...> - 2010-01-31 03:08:57
|
From memory, the command is something like "start filename.png". But yes, I think you need a correct file extension. Cheers JP Bob Friesenhahn wrote: > On Sat, 30 Jan 2010, Glenn Woodruff wrote: > > >> Hi Bob, >> I think what you're looking for is: >> cmd.exe /c filename >> > > Hmmm, I see that this works if the filename contains the appropriate > extension. Unfortunately, when GraphicsMagick creates a temporary > file, it does not have a useful extension so it does not work. This > approach also seems to cause a dire security problem since it will > also invoke executables. > > Perhaps I should be directly invoking the "Windows Picture and Fax > Viewer" instead since it should know how to test to see what the file > really is. I seem to be successful with syntax like this: > > cmd.exe /c rundll32.exe %SystemRoot%\system32\shimgvw.dll,ImageView_Fullscreen file > > Is there something better? > > Bob > > >> Thanks, >> Glenn Woodruff >> Cine-tal >> -----Original Message----- >> From: Bob Friesenhahn [mailto:bfriesen@...] >> Sent: Saturday, January 30, 2010 4:29 PM >> To: GraphicsMagick Help >> Subject: [GM-help] Need a way to open a file by association under >> Windows >> >> I am looking for a standard Microsoft Windows program which will open >> a file using the associated program according to the Windows file >> association subsystem. Basically, I am looking for a way to open an >> image file via its file association (similar to what happens if a >> file is double-clicked in the file browser), and do it from the >> command line. This needs to work for Windows XP and later. >> >> Can someone help? >> >> Bob >> -- >> Bob Friesenhahn >> bfriesen@..., >> http://www.simplesystems.org/users/bfriesen/ >> GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ >> >> ------------------------------------------------------------------------ >> ------ >> The Planet: dedicated and managed hosting, cloud storage, colocation >> Stay online with enterprise data centers and the best network in the >> business >> Choose flexible plans and management services without long-term >> contracts >> Personal 24x7 support from experience hosting pros just a phone call >> away. >> http://p.sf.net/sfu/theplanet-com >> _______________________________________________ >> Graphicsmagick-help mailing list >> Graphicsmagick-help@... >> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help >> >> ------------------------------------------------------------------------------ >> The Planet: dedicated and managed hosting, cloud storage, colocation >> Stay online with enterprise data centers and the best network in the business >> Choose flexible plans and management services without long-term contracts >> Personal 24x7 support from experience hosting pros just a phone call away. >> http://p.sf.net/sfu/theplanet-com >> _______________________________________________ >> Graphicsmagick-help mailing list >> Graphicsmagick-help@... >> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help >> >> > > -- > Bob Friesenhahn > bfriesen@..., http://www.simplesystems.org/users/bfriesen/ > GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Graphicsmagick-help mailing list > Graphicsmagick-help@... > https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help > |
From: Bob Friesenhahn <bfriesen@si...> - 2010-01-31 15:57:22
|
On Sun, 31 Jan 2010, John Pye wrote: > From memory, the command is something like "start filename.png". But > yes, I think you need a correct file extension. It seems that using the "Windows Picture and Fax Viewer" should be good enough to start with. It is more sophisticated than 'gmdisplay' for viewing and printing an image. Unfortunately, the program always displays the name of the temporary file that GraphicsMagick creates and there does not seem to be a way to supply an alternate title. The GraphicsMagick Windows setup installer has become a bit more slim and trim, with a download file size of 4.8MB vs 12.56MB for the equivalent ImageMagick installer. Bob -- Bob Friesenhahn bfriesen@..., http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ |