Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run command long file name
Message
De
23/08/2006 16:08:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Divers
Thread ID:
01148006
Message ID:
01148011
Vues:
17
>I want to run a program called newbie, with a script call americanbulls. I can do this
>in WinXP start, run, then use the following
>
>"c:\program files\newbie\newbie.exe" +/login mylogin /password mypass /script "americanbulls.nbl" /exec ie /windowstate 0
>
>Then the program works fine. But I can't figure out how to do the same in foxpo.
>I have tried this:
>
>pr = "c:\Program Files\Newbie\newbie.exe "
>ps = "/login admin /password asdfasdf"
>sc = '/script "americanbulls.nbl" /exec ie /windowstate 0'
>tg = (pr) + (ps) + (sc)
>RUN &tg
>
>A dos box appears, but the program does not run. Does doesanyone know how to do this?
>Thanks
>Steve

A couple of things. One are you sure where the dos opens it can find americanbulls.nbl? Something to try is to load the command in cliptext and just run cmd then past the line in the cliptext to the dos prompt.
pr = "c:\Program Files\Newbie\newbie.exe "
ps = "/login admin /password asdfasdf"
sc =  '/script "americanbulls.nbl" /exec ie /windowstate 0'
tg = (pr) + (ps) + (sc)
_CLIPTEXT = tg
RUN cmd
Then in the command box right click on the top of the window and select edit paste.
>
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform