"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

IrfanView

Run Irfanview on the Windows XP Command Line

SUMMARY: Start IrfanView in a Windows XP batch file or on the command line.


 

Need to start the IrfanView graphics viewer/editor in a Windows XP batch file that can be run from anywhere? Doing so opens up a wide variety of functions that will be explained in future tips on MalekTips.

1. Start up Notepad. Click "Start" - "Run", enter "notepad" (without quotes) and press ENTER.

2. Key the following into the Notepad window (it should all be on one line):

@"c:\program files\irfanview\i_view32.exe" %*

Note that if IrfanView was installed in a different directory, you should replace the above directory with the one where you installed the software.

3. Save the file to your Windows directory as irfanview.bat. Click "File" - "Save" and enter the following filename:

%WINDIR%\irfanview.bat

4. Press "Save".

Now, if you need to start IrfanView in a batch file or on the Windows XP command line, just enter the command:

irfanview

You can also start IrfanView and automatically load a graphic. For example, the following command would start IrfanView, loading image c:\temp\football.jpg :

irfanview c:\temp\football.jpg

This tip was written for an older version of Irfanview, and instructions for the latest version may differ.




Print This Tip

Get E-Mail When New Tips are Online

Return to the IrfanView page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )