Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RUN a exe whose path contains spaces
Message
De
20/10/1997 02:40:02
 
 
À
19/10/1997 21:31:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00055090
Message ID:
00055465
Vues:
39
>>>>>I have a problem where I need to run a program that potentially resides in a directory such c:\Program Files\blah blah\the.exe.
>>>>>
>>>>>I'm currently building the run command in a quoted variable and executing the run with a macro as follows:
>>>>>
>>>>>xCmnd = '"' + GetTheProgram() + ' ' + GetParameters() + '''
>>>>>&& xCmnd would look like "C:\Program Files\Blah Blah\The.exe C:\Program Files\Blah Blah\AnotherFileName"
>>>>>RUN &xCmnd
>>>>>
>>>>>Fail
>>>>>
>>>>>If, however xCmnd looked like "C:\Blah\The.exe C:\Program Files\Blah Blah\AnotherFileName" it works.

did you try having xCmnd look like

'run "C:\Blah Blah\name.exe" ...'?

Arnon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform