Dear Sir,
I have a program to scan. I use a third party software - Accquire
So they give me some suggestion to scan.
To Scan from a particular Scanner, I need to use this command.
for eg: I have a scanner named HP PSC 1400 TWAIN.
So To run in Command line, they told me that use below command.
c:\>acquire /s="HP PSC 1400 TWAIN"
They told me that we need to specify Quotes because, Scanner name has spaces.
Now I need to bring same program to basic4ppc.
so the code is given below
wpgm="C:\Acquire\Acquire.exe"
wpar="/s=" & " " " & "HP PSC 1400 TWAIN" & " " "
Shell(wpgm, wpar)
But I got error.
I know the line wpar="/s=" & " " " & "HP PSC 1400 TWAIN" & " " "
is not correct.
I got error is like, Too many filenames 1400. I think program detect HP and PSC and 1400 like instead of single "HP PSC 1400 TWAIN"
How I can write this code with scanner name inside qutoes ?
Can you help me please how I can write this program well.
jothis
:sign0085:
I have a program to scan. I use a third party software - Accquire
So they give me some suggestion to scan.
To Scan from a particular Scanner, I need to use this command.
for eg: I have a scanner named HP PSC 1400 TWAIN.
So To run in Command line, they told me that use below command.
c:\>acquire /s="HP PSC 1400 TWAIN"
They told me that we need to specify Quotes because, Scanner name has spaces.
Now I need to bring same program to basic4ppc.
so the code is given below
wpgm="C:\Acquire\Acquire.exe"
wpar="/s=" & " " " & "HP PSC 1400 TWAIN" & " " "
Shell(wpgm, wpar)
But I got error.
I know the line wpar="/s=" & " " " & "HP PSC 1400 TWAIN" & " " "
is not correct.
I got error is like, Too many filenames 1400. I think program detect HP and PSC and 1400 like instead of single "HP PSC 1400 TWAIN"
How I can write this code with scanner name inside qutoes ?
Can you help me please how I can write this program well.
jothis
:sign0085:
Attachments
Last edited: