Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run exe with file parameter
Message
De
23/03/2006 04:38:38
 
 
À
23/03/2006 04:23:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01106228
Message ID:
01106911
Vues:
27
You're welcome. The problem with your solution, which gave an error, was the space in the directory name.

>Thanks a lot!!!! It works fine!
>Tamas
>>I have not read the whole thread, but this should work
>>lRef= 'C:Progra~1\Utvonal\Utvhatar.exe ' + 'hamiTszt.txt' && use the 8.3 DOS directory name
>>RUN &lRef
>>
>>>Thanks but it didn't help. I still get the same message: 'Bad command or file name'.
>>>Tamas
>>>
>>>>Leave out the "=" in your RUN command:
>>>>
RUN &lRef
>>>>
>>>>>Sorry I left out the '&' in front of lRef.
>>>>>
>>>>>Here's the proper code again:
>>>>>**********
>>>>>lRef= 'C:Program Files\Utvonal\Utvhatar.exe ' + 'hamiTszt.txt'
>>>>>RUN =&lRef
>>>>>**********
>>>>>I made a .bat file with a line 'Utvhatar.exe hamiTszt.txt'. It worked fine when running but when I tried from Visual FoxPro, I got the same error message.
>>>>>Tis is the code:
>>>>>**********
>>>>>lRef= 'C:Program Files\Utvonal\run.bat'
>>>>>RUN =&lRef
>>>>>**********
>>>>>The message I'm always getting is 'Bad command or file name'.
>>>>>Thanks,
>>>>>Tamas
>>>>>
>>>>>>Can you post the exact code you're using?
>>>>>>
>>>>>>
>>>>>>>I would like to have an .exe file running with a file as a parameter, which should start(the exe) within a prg. But I'm always getting the same error message:"Command error". I have tried command RUN but it doesnt work.
>>>>>>>TIA
>>>>>>>Tamas Szigeti
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform