Need assistance - Access shell to exe works in XP & 98 but not in 2000 Pro

L

llively2

We have this shell working in XP and Win98 but it will not work in 2000
Pro. When the button with the command is pressed in 2000 it comes up
with the error "File not found".

What are we missing to get it to work in 2000?

We are trying to call up a program Infanview.exe for entering images
into a file for Access.

Below is more desciption:

When you click the scan button, the program shells out to an IrfanView
command line. Irfanview will connect with the default scanner. You have
to install IrfanView and the scanner first (see below.) Here's the
line of code:



Call Shell(IrfanViewSpec & " /scanhidden /convert=" & TempSpec,
vbNormalFocus)



where IrfanViewSpec is the location of the IrfanView Pprogram, a global
variable loaded from the Util Table on startup (Currently set to the
installation default: C:\Program Files\IrfanView\i_view32.exe), and
TempSpec is the name of a temporary file to hold the scanned image
before rotating and converting to jpg, which is also done with
IrfanView. The scanning subroutine is attached to this message.

Thanks agian in advance,

Lynn
 
C

Charles E. Vopicka

are you sure that the global variable has the appropriate value in it.
i have had problems with global variables "forgetting". then i have to
end up repopulating the value regularly. almost to the point of wanting
to get rid of the variable and replace it with the code that populates it.

We have this shell working in XP and Win98 but it will not work in 2000
Pro. When the button with the command is pressed in 2000 it comes up
with the error "File not found".

What are we missing to get it to work in 2000?

We are trying to call up a program Infanview.exe for entering images
into a file for Access.

Below is more desciption:

When you click the scan button, the program shells out to an IrfanView
command line. Irfanview will connect with the default scanner. You have
to install IrfanView and the scanner first (see below.) Here's the
line of code:



Call Shell(IrfanViewSpec & " /scanhidden /convert=" & TempSpec,
vbNormalFocus)



where IrfanViewSpec is the location of the IrfanView Pprogram, a global
variable loaded from the Util Table on startup (Currently set to the
installation default: C:\Program Files\IrfanView\i_view32.exe), and
TempSpec is the name of a temporary file to hold the scanned image
before rotating and converting to jpg, which is also done with
IrfanView. The scanning subroutine is attached to this message.

Thanks agian in advance,

Lynn


--
Charles E. Vopicka's (Chuck) : (e-mail address removed)

Database Management, GIS Specialist and Research Assistant

Forest Biometrics Research Institute
University of Montana - College of Forestry and Conservation
Missoula, MT 59812
United States of America

Phone:
(406)243-4526
(406)243-4264
(406)549-0647 (Home)

:) HAVE A NICE DAY (-:

"UNLESS" (The Lorax, by Dr. Seuss)
 
B

bob

Try executing the exact command-line that your code generates at the command prompt to verify that it works
(or see the output if it doesn't).

Does the path include quotes (because of the long path)? Maybe the system is trying to execute 'C:\Program'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top