Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running scanner exe with parameter

Status
Not open for further replies.

jasontektips

Programmer
May 30, 2003
23
SG
Hi,

Would like to find out whether it's possible to run a scanner exe command with parameter.

Eg. A HP 3-in-1 printer with scanner capabilities

C:\Program Files\Hewlett-Packard\hp psc 700 series\bin\Hposcv07.exe c:\mypics\me.jpg

When I run the above command, it will start the scanner to scan the pic, and then automatically save the scanned image to the directory c:\mypics with filename me.jpg

Is this possible? for any scanner brand. eg. Epson, HP, Canon etc??

May thanks in advance.
Jason
 
Do you mean you want to have something that you can just pass a parameter to that will do scan in the same way you did via the command line?

for example

ScanIt c:\mypics\me.jpg

If so, then as long as the command line example you qouted does work then you could create a batch file, as follows

Open notepad

enter

C:\Program Files\Hewlett-Packard\hp psc 700 series\bin\Hposcv07.exe %1

then save the file as c:\scanit.bat

or whatever name you want as long as it ends in .bat and you remember where you saved it.

Then go to the command prompt and type

c:\scanit c:\mypics\me.jpg

this will then be in effect the same as typing in the full command line you used in your oringal post.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top