Thanks for the quick reply. It's not just this script, I
just included it as an example. All my scripts are not
running.
Quote:
>-----Original Message-----
>It appears to be OK; does the registry entry not show
up? And does
>RestartWindows.exe run OK on XP if you run it by itself?
>--
>Please respond in the newsgroup. I've still got unread
email from the
>week Win95 was released, if that tells you anything.
>http://www.bittnet.com/winremote
>http://www.bittnet.com/scripting
>> Hello All,
>> I have several scripts that run file in 98SE, Me, 2K,
and
>> NT4, but they do not run in XP (nothing happens when I
run
>> them). All OS's except XP have been upgraded to
>> WSH/VBScript 5.6.
>> Here's an example:
*********************************************************
Quote:
>> Option Explicit
>> Dim objWshShell, objExec1, objArgs
>> Set objWshShell = WScript.CreateObject
("WScript.Shell")
>> Set objArgs = WScript.Arguments
>> If objArgs.Count = 0 Then
>> WScript.Echo "1st run"
>> ElseIf objArgs(0) = "2ndBoot" Then
>> With WScript
>> .Sleep 100
>> .Echo "2nd run"
>> .Quit
>> End With
>> End If
>> ' Write the reg entry
objWshShell.RegWrite "HKCU\Software\Microsoft\Windows\Curre
Quote:
>> ntVersion\RunOnce\Re-entrant", "C:\Scripts\Re-
entrant\Re-
>> entrant.vbs 2ndBoot", "REG_SZ"
>> ' Reboot the system
>> objWshShell.Run Chr(34)
>> & "..\Utilities\RestartWindows.exe" & Chr(34), 1, True
*********************************************************
Quote:
>> Thanks in advance for any help.
>> Bill
>> .
>.