Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run command long file name
Message
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:
01148076
Vues:
20
FWIW, the RUN command has a number of limitations on command line length. I've run into this in a number of situations and pretty much gave up using it and instead use the CreateProcess API. I think there's some code in the libraries for this here, if not let me know and I'll post my code here (there are a few dependencies so it's a bit lengthy).

In fact I have two version of it - the above API call and one that can wait for completion and pipe output to files etc. but that code requires a C DLL to work right and it's part of wwIpStuff.

+++ Rick ---




>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
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform