从命令行查看Windows7下的图像

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了从命令行查看Windows7下的图像相关的知识,希望对你有一定的参考价值。

Useful to open an image for viewing from the command line under Windows, in this example the image is generated by the GraphViz dot command.
  1. @rem pick a type for the image:
  2. @set TYPE=jpeg
  3.  
  4. @rem run the graphviz dot to generate the image of the given type
  5. @dot %1.gv -v -o %1.%TYPE% -T%TYPE%
  6.  
  7. @rem can show it using standard Windows image viewer
  8. @rundll32.exe %SystemRoot%System32shimgvw.dll, ImageView_Fullscreen %CD%%1.%TYPE%
  9.  
  10. @rem or can show it using the Windows Live Essentials Photo Viewer
  11. @rem that ends up with the same as above:
  12. @rem rundll32 "%ProgramFiles(x86)%Windows Photo ViewerPhotoViewer.dll",ImageView_Fullscreen %CD%\%1.%TYPE%
  13.  
  14. @rem or can use 3rd party viewer such as IrfanView:
  15. @rem "%ProgramFiles(x86)%IrfanViewi_view32.exe" %1.%TYPE%
  16.  
  17. @rem delete the image
  18. @del *.%TYPE%

以上是关于从命令行查看Windows7下的图像的主要内容,如果未能解决你的问题,请参考以下文章

如何在 Windows 上使用命令行访问 PHP?

活久见!Linux命令行居然也可以用来查看图像?

如何实时查看linux下的日志

如何实时查看linux下的日志

MySQL命令行导入sql数据库

MySQL命令行导入sql数据库