Running Scripting Host Files as Logon Script 
Author Message
 Running Scripting Host Files as Logon Script

You have to launch it from a batch file or program launcher in 95 or NT4. It
will only run natively in 98 or Win 2000.

Quote:

>Is it possible to replace the batch files that are often run as logon
>scripts with a VBS file? My attempts to make this happen have not
>worked. I have made a .VBS file that checks for a file existance,
>deletes the file if it does, and reports the results.

>I would like to replace our batch logon scripts with the scripting host,
>but the script never appears to run. Or at least I never get the results
>back. Would this run in cscript or wscript by default? Can cscript even
>return results like wscript does? Has any one successfully replaced
>their batch file with a VB script?



Sat, 13 Oct 2001 03:00:00 GMT  
 Running Scripting Host Files as Logon Script

Is it possible to replace the batch files that are often run as logon
scripts with a VBS file? My attempts to make this happen have not
worked. I have made a .VBS file that checks for a file existance,
deletes the file if it does, and reports the results.

I would like to replace our batch logon scripts with the scripting host,
but the script never appears to run. Or at least I never get the results
back. Would this run in cscript or wscript by default? Can cscript even
return results like wscript does? Has any one successfully replaced
their batch file with a VB script?

begin 600 samtest.vbs


M95-Y<W1E;4]B:F5C="(I#0I)1B!F<V\N1FEL945X:7-T<R`H(D,Z7$U37%--

M<V\N1V5T1FEL92`H(D,Z7$U37%--4UQ.3TE$34E&4UQ315))04PN34E&(BD-


M960B#0I%3%-%#0H)3W5T<'5T5&5X="`](").;R!&:6QE(%!R97-E;G0B#0I%

`
end



Sun, 14 Oct 2001 03:00:00 GMT  
 Running Scripting Host Files as Logon Script

Is it possible to replace the batch files that are often run as logon
scripts with a VBS file? My attempts to make this happen have not
worked. I have made a .VBS file that checks for a file existance,
deletes the file if it does, and reports the results.

I would like to replace our batch logon scripts with the scripting host,
but the script never appears to run. Or at least I never get the results
back. Would this run in cscript or wscript by default? Can cscript even
return results like wscript does? Has any one successfully replaced
their batch file with a VB script?

begin 600 samtest.vbs


M95-Y<W1E;4]B:F5C="(I#0I)1B!F<V\N1FEL945X:7-T<R`H(D,Z7$U37%--

M<V\N1V5T1FEL92`H(D,Z7$U37%--4UQ.3TE$34E&4UQ315))04PN34E&(BD-


M960B#0I%3%-%#0H)3W5T<'5T5&5X="`](").;R!&:6QE(%!R97-E;G0B#0I%

`
end



Sun, 14 Oct 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Research: Windows Script Host or Windows Scripting Host

2. How do I run a .vbs file a NT logon script

3. Running VBS Script Via Logon Batch File

4. logon.exe script.vbs in profile (logon script)

5. Running VBscripts without the scripting host

6. String length limit on Windows Scripting Host Run method

7. Windows Scripting Host Run method fails - HELP!

8. Running programs from a HTA (without Windows Scripting Host)

9. Running a Visual Basic Script During Logon

10. Logon Date/Time Script Won't Run

11. Running replicated WSH logon scripts

12. Error running logon script

 

 
Powered by phpBB® Forum Software