Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Help - vbscript won't run in my login script

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,24301
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Help - vbscript won't run in my login script
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Help - vbscript won't run in my login script - 7/29/2005 3:30:30 AM   
  janestclaire

 

Posts: 8
Score: 0
Joined: 7/28/2005
Status: offline
I have line in my login script (batch file) that says

:^   UPDATE WHICH RUNS ONE TIME
cscript.exe "%SystemDrive%\cabs\login\scripts\Update.vbs" //nologo /b

It doesn't run.  The script actually exists on a network location and does not exit in the c:\cabs\login folder and it is a onetime run.  Can anyone help?

thanks,

Janet
 
 
Post #: 1
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 3:32:34 AM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Welcome to VBScript Jane stClaire,

quote:

"%SystemDrive%\cabs\login\scripts


change the above path to the actual path....

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to janestclaire)
 
 
Post #: 2
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 3:35:46 AM   
  pancim

 

Posts: 6
Score: 0
Joined: 7/29/2005
Status: offline
I presume you are 'shelling' out of your batch file?

eg: shell cscript <scriptname> /<switches>

M

(in reply to janestclaire)
 
 
Post #: 3
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 3:39:43 AM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
is this  .NET ?

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to pancim)
 
 
Post #: 4
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 3:44:58 AM   
  janestclaire

 

Posts: 8
Score: 0
Joined: 7/28/2005
Status: offline
Thank you for helping.  It still doesn't work even when running from the location where the vb script exists.

Works when I just run it outside of the login script.

(in reply to Snipah)
 
 
Post #: 5
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 3:46:07 AM   
  pancim

 

Posts: 6
Score: 0
Joined: 7/29/2005
Status: offline
Can we see the snippet of your batch file. I would say that is where the problem is

(in reply to janestclaire)
 
 
Post #: 6
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 4:12:42 AM   
  janestclaire

 

Posts: 8
Score: 0
Joined: 7/28/2005
Status: offline
Not sure how much you wanted.  All the rest works great.

:^   LOGIN
xcopy /d/c/i/q/r/k/y "%SystemDrive%\CABS\Login\Login.bat" "%WinDir%\System32\GroupPolicy\User\Scripts\Logon"
:^   ICONS
if %DeployIcons% equ 1 rd /s/q "%SystemDrive%\Documents and Settings\All Users\Start Menu\Programs\Sedgwick Applications"
if %DeployIcons% equ 1 xcopy /d/s/c/i/q/r/k/y "%SystemDrive%\CABS\Login\StartMenu\*" "%AllUsersProfile%\Start Menu\Programs\Sedgwick Applications"
:^   GENIFAX - 06.15.04

if not exist "%SystemDrive%\CABS\Login\Updates\Genifax3.3.txt" goto END_GENIFAX
if exist "%SystemDrive%\CABS\Login\Updates\Genifax3.3_%UserName%.txt" goto END_GENIFAX
xcopy /c/i/q/r/k/y "%SystemDrive%\CABS\Login\StartMenu\Genifax Inbox.*" "%AllUsersProfile%\Desktop"
xcopy /c/i/q/r/k/y "%SystemDrive%\CABS\Login\StartMenu\Genifax Inbox.*" "%UserProfile%\Favorites"
if not exist "H:\Favorites" goto GENIFAX_LOG
xcopy /c/i/q/r/k/y "%SystemDrive%\CABS\Login\StartMenu\Genifax Inbox.*" "H:\Favorites"
:GENIFAX_LOG
echo Genifax Inbox Links %UserName% > "%SystemDrive%\CABS\Login\Updates\Genifax3.3_%UserName%.txt"
:END_GENIFAX
:^   IMANAGE - 6.15.04
"%SystemDrive%\CABS\Login\iManage\dstfix.exe" /s /cl
"%SystemDrive%\Program Files\iManage\Portbl32.exe" -DS30
regedit /s "%SystemDrive%\CABS\Login\iManage\Regkeys\MaxSelectedRows5000.reg"
if exist "%SystemDrive%\CABS\Login\Updates\iManageSP1aHF1.txt" xcopy /c/i/q/r/k/y "%SystemDrive%\CABS\Login\WordAssist\*.dll" "%SystemDrive%\CABS\Login\WordAssist\WordAssist\Dlls"
if exist "%SystemDrive%\CABS\Login\Updates\iManageSP1aHF1.txt" regedit /s "%SystemDrive%\CABS\Login\Regkeys\BrowserFlags0.reg"
:^   ADOBE ACROBAT READER - 08.18.04
regedit /s "%SystemDrive%\CABS\Login\Regkeys\AdobeBrowser0.reg"
regedit /s "%SystemDrive%\CABS\Login\Regkeys\AdobeUpdate0.reg"
if exist "%ProgramFiles%\Adobe\Acrobat 6.0\Reader\AcroRd32.exe" xcopy /c/i/q/r/k/y "%SystemDrive%\CABS\Login\iManage\NRTDDE.*" "%ProgramFiles%\iManage"
:^   CMS WEB TIME - 06.15.04
regedit /s "%SystemDrive%\CABS\Login\Regkeys\AllowWindowReuse0.reg"
:^   OUTLOOK SECURITY - 06.15.04
regedit /s "%SystemDrive%\CABS\Login\Regkeys\OutlookSecurity.reg"
:^   INTERNET EXPLORER SECURITY - 07.02.04
regedit /s "%SystemDrive%\CABS\Login\Regkeys\ADODB.Stream.reg"
:^   DOCXSTYLES - 07.27.04
if not exist "%ProgramFiles%\DocXTools\static.txt" echo""> "%ProgramFiles%\DocXTools\static.txt"
:^   OUTLOOK SIGNATURES - 10.03.03
del /q "%UserProfile%\Application Data\Microsoft\Signatures\email_logo.gif"
del /q "%UserProfile%\Application Data\Microsoft\Signatures\logo signature (for direct dial).*"
del /q "%UserProfile%\Application Data\Microsoft\Signatures\logo signature (for extension).*"
if not exist "%SystemDrive%\CABS\Login\Updates\10.03.03_%UserName%.txt" xcopy /c/i/q/r/k/y "%SystemDrive%\CABS\Login\Signatures\*" "%UserProfile%\Application Data\Microsoft\Signatures"
echo Firm Signatures %userName% > "%SystemDrive%\CABS\Login\Updates\10.03.03_%UserName%.txt"
:^   01.24.05 - IMANAGE NRL Link Enable
if exist "%SystemDrive%\CABS\Login\Updates\012405_iManageNRL.txt" goto NRL_END
"%ProgramFiles%\iManage\nrl.exe" /regserver
regedit /s "%SystemDrive%\CABS\Login\Regkeys\NRL.reg"
echo iManage NRL Enabled > "%SystemDrive%\CABS\Login\Updates\012405_iManageNRL.txt"
:NRL_END
:^   05.01.05 - Amyuni PDF Driver Default Resolution Update
if not exist "%SystemDrive%\CABS\Login\Updates\050105_AmyuniRes.txt" cscript.exe "%SystemDrive%\cabs\login\scripts\050105_AmyuniRes.wsf" //nologo /b
:^   06.01.05 - Browser Flags Update to launch Word from .doc links
if exist "%SystemDrive%\CABS\Login\Updates\060105_Templates.txt" goto 060105_END
regedit /s "%SystemDrive%\CABS\Login\UpdateFiles\060105_Templates\WordBrowserLaunchWord.reg"
:060105_END
:^   WORDASSIST UPDATE WHICH ALWAYS RUNS
cscript.exe "w:\setup\Update.wsf" //nologo /b
:^  LOGIN LOG
echo %ComputerName%,%UserName%,%Date%,%Time% >> "%LogPath%\Login_log.txt"
:END

(in reply to pancim)
 
 
Post #: 7
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 4:28:01 AM   
  ehvbs

 

Posts: 2061
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Probably just my paranoia, but

  cscript.exe "w:\setup\Update.wsf" //nologo /b

(in reply to janestclaire)
 
 
Post #: 8
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 4:31:08 AM   
  janestclaire

 

Posts: 8
Score: 0
Joined: 7/28/2005
Status: offline
These are generic utility functions which should be made available
to all VBScripts by calling through a .wsf file.    I have tried just calling the update.vbs  and it doesn't work.

(in reply to ehvbs)
 
 
Post #: 9
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 4:45:35 AM   
  ehvbs

 

Posts: 2061
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
To eliminate the possibility that your batch script isn't allowed/able to call cscript.exe: Is the "Amyuni" stuff working?

Could you replace Update.vbs with a simple test script that just indicates (msgbox, logfile) that it is called?

(in reply to janestclaire)
 
 
Post #: 10
 
 RE: Help - vbscript won't run in my login script - 7/29/2005 4:55:14 AM   
  pancim

 

Posts: 6
Score: 0
Joined: 7/29/2005
Status: offline
Hi Jane,

It is like I thought. You need to "SHELL" cscript.exe

 The SHELL command
SHELL=%systemroot%\cscript.exe "w:\setup\Update.wsf" //nologo /b


< Message edited by pancim -- 7/29/2005 4:57:43 AM >

(in reply to janestclaire)
 
 
Post #: 11
 
 RE: Help - vbscript won't run in my login script - 8/1/2005 2:48:50 AM   
  janestclaire

 

Posts: 8
Score: 0
Joined: 7/28/2005
Status: offline
Thank you.  I was out Friday.  I am trying this now.

thanks again,

J

(in reply to pancim)
 
 
Post #: 12
 
 RE: Help - vbscript won't run in my login script - 8/1/2005 4:50:39 AM   
  janestclaire

 

Posts: 8
Score: 0
Joined: 7/28/2005
Status: offline
Shell doesn't work...

(in reply to janestclaire)
 
 
Post #: 13
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Help - vbscript won't run in my login script Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts