Problem with FBA Generic Command

R

Ricky

I wrote a modified version of adsutil.vbs for the configuration of WEB and
SMTP server during FBA.
I launch it with cscript.exe at the end of the FBA (I tried at phase 8500
and 12000) with no luck. I obtain 0x1 exit error.

Anyone can help me?

Thanks a lot.

Ricky
 
R

Ricky

One possiblity, I found that the script mode has to be changed to run
VBscripts

wscript //H:cscript

I'm already using cscript.exe to launch the script. I use
c:\windows\system32\cscript.exe as command path and the vbs script as
argument.

Ricky
 
S

Sean Liming \(eMVP\)

What version of XPE are you using? There was an issue in the past with
havingto edit the VBscript component and include a %1 in order t run
applications.

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit
 
K

KM

Ricky,

Does the command you launched during FBA work if you run it manually at run time?

What and how exactly you set up as FBA resource? FBA Generic command? Can you show us the resource fields?

Try launching CMD instead (set the flag to wait until the command finished). From running CMD prompt window you can run, test and
debug your own script. then, when you come up with the proper script and command, you can automate it during FBA.
 
R

Ricky

What version of XPE are you using? There was an issue in the past with
havingto edit the VBscript component and include a %1 in order t run
applications.

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit

I'm using XPE updated to FP2007. Can you tell me where exactly I have to
add the %1 switch, please?

Ricky
 
S

Sean Liming \(eMVP\)

Fp2007- good. The problem was solved in SP2 so you should have to change a
thing. Did you try what KM suggested?

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit
 
R

Ricky

Fp2007- good. The problem was solved in SP2 so you should have to change a
thing. Did you try what KM suggested?

I solved the problem by running in FBA generic command cmd.exe and, in
arguments, the /C switch followed by cscript.exe and the patch to vbs
script.

Thanks a lot.

Ricky
 
K

KM

Ricky,
I solved the problem by running in FBA generic command cmd.exe and, in
arguments, the /C switch followed by cscript.exe and the patch to vbs
script.

That was required becuase you chose to use cscript.

If you used wscript if you wouldn't need CMD.
Btw, %1 problem wouldn't be there either (although it is fixed in SP2/FP2007) becuase you'd run the command directly (%1 is only
issue for the scripts that are launched from Explorer).
 
S

Sean Liming \(eMVP\)

Circling back to my original reply - The only caveat to using wscript is
setting the right mode for cscript.

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
XP Embedded Book Author - XP Embedded Advanced, XP Embedded Supplemental
Toolkit
 
E

Eduardo Campaner

Hi Sean,
I am still not sure about your solution for swapping wscritp to cscript.
I guess I created another FBA Generic Command with the entry:
FBA1
arguments : //H:cscript
filepath: c:\Windows\System32\wscript.exe
but still error 0x1

FBA2
arguments : c:\windows\system32\Scripts\Start.vbs
filepath: c:\Windows\System32\cscript.exe
but still error 0x1

is it my feeling that FBA Generic Command does not work?
What is missing/wrong?

thanks


EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com/default.aspx?ref=ng
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top