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