Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a program in program files folder
Message
 
À
24/01/2013 09:27:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01563955
Message ID:
01563994
Vues:
62
>>Hi all,
>>
>>I have a customer who wants to call a scanning program automatically. Should be no problem so I've put the location of the exe file into a memo filed and call it with the Run command, nothing happens. If I call other programs on a mapped drive they start fine, if I call other programs in the c:\test1 folder they start fine. The program location I am trying to call is
>>c:\program files\hp\hp laserjet mfp 400abc\bin\scan.exe
>>When I click on my button to run this exe the dos box pops up very briefly and disappears but the scan.exe program does not start. From a security point of view I have added everyone with full control to the hp laser... folder and also ensures that those right are similar in the bin folder. I have opened a dos box and typed in the location and file as one command and it started so I'm baffled on this one.
>
>Spaces in the path... did you include quotation marks around the filename?
I've tried it both with and without quotes, the code I run is below
mrunfile = ALLTRIM(memo1)
RUN &mrunfile
memo1 contains "C:\Program Files\HP\HP LaserJet 400 MFP M425\bin\HPScan.exe". I have tried doing this by hard coding in the location of the file as well. If I change the above to C:\folde1\program.exe it works.
~M
Go raibh maith agat

~M
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform