Does vbscript during FBA work?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm try to execute a vbscript during FBA Phase 8501 with an "FBA Generic
Command" without success.
In the FBA Log i got always the following error:

14:09:38 PM - [FBALaunch] C:\WINDOWS\system32\wscript.exe //B
C:\WINDOWS\TestScript.Vbs (ExitCode: 0x1)

Also the follwoing "Hello World" script give me the ExitCode 0x1:

WScript.Echo "Hello World"

If i start this script after FBA it works without any problems.

I try run run the script with cscript.exe and later FBA phase, all trys
without success.

I've use XP-Embedded with SP2 as development system.

-Should vbscript generell work in a "FBA Generic Command"?
-If yes, can someone give me the calling conventions of an Hello World
Script in a "FBA Generic command"?

Here is my FBA Generic Command:
Type 1
Timeout 0
Start 1
Reboot FALSE
Phase 8501
Flags 0
FilePath %11%\WScript.exe
Arguments //B %25%\TestScript.Vbs

Thanx for all answer!

gerros
 
Gerros,

There was a known bug in XPe SP1 where a value was missing from the
*.vbs file association. You might find it by searching the GOOGLE group
but here's the fix:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,43,00,53,00,\

63,00,72,00,69,00,70,00,74,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,31,\
00,22,00,20,00,25,00,2a,00,00,00

In English, that is: %SystemRoot%\System32\CScript.exe "%1" %*

HTH, Roy
 
The reg fix was introduced in "Windows Script Engines - Hotfix Q824704".
Anyway, it is there in SP2.

Also, Gerros set up the FBA command to launch wscript directly so his problem was not about the Shell registry entries.

The FBA phase should be > 4500 where wsh script engine dll's get registered.

Gerros, can you replace //B with //I (Flags and Timeout should be set to 0 for your FBA Generic command). Then you would be able to
see where and why it is failing.

Btw, make also sure you've got the TestScript.Vbs under Windows directory.

KM
There was a known bug in XPe SP1 where a value was missing from the
*.vbs file association. You might find it by searching the GOOGLE group
but here's the fix:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,43,00,53,00,\

63,00,72,00,69,00,70,00,74,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,31,\
00,22,00,20,00,25,00,2a,00,00,00

In English, that is: %SystemRoot%\System32\CScript.exe "%1" %*

HTH, Roy

I'm try to execute a vbscript during FBA Phase 8501 with an "FBA Generic
Command" without success.
In the FBA Log i got always the following error:

14:09:38 PM - [FBALaunch] C:\WINDOWS\system32\wscript.exe //B
C:\WINDOWS\TestScript.Vbs (ExitCode: 0x1)

Also the follwoing "Hello World" script give me the ExitCode 0x1:

WScript.Echo "Hello World"

If i start this script after FBA it works without any problems.

I try run run the script with cscript.exe and later FBA phase, all trys
without success.

I've use XP-Embedded with SP2 as development system.

-Should vbscript generell work in a "FBA Generic Command"?
-If yes, can someone give me the calling conventions of an Hello World
Script in a "FBA Generic command"?

Here is my FBA Generic Command:
Type 1
Timeout 0
Start 1
Reboot FALSE
Phase 8501
Flags 0
FilePath %11%\WScript.exe
Arguments //B %25%\TestScript.Vbs

Thanx for all answer!

gerros
 
Back
Top