Results 1 to 2 of 2

Thread: VBscript to run batch file carry on running

  1. #1
    Join Date
    Feb 2010
    Posts
    1

    VBscript to run batch file carry on running

    Please can any body help me with problem i am having

    I have beein trying to get this script below to work how i need it to. I need it to run the citrix client when user logs on it loads up instead of explore.exe then when the user logs off it runs a script "install.bat" then once it has finished installing and script has run it carrys on running and shows the shutdown message.



    'var creation
    Dim WshShell, proc
    set WshShell=Wscript.CreateObject("WScript.Shell")

    set proc=WshShell.Exec("C:\Program files\Citrix\ICA Client\wfica32.exe c:

    \desktop.ica")

    ' wait until desktop session finished

    Do While proc.Status=0

    WScript.Sleep 1
    Loop


    dim shell
    set shell=createobject("wscript.shell")
    shell.run "install.bat"
    set shell=nothing


    MsgBox "Shutdown"

  2. #2
    Seoconsultant786 Guest

    Re: VBscript to run batch file carry on running

    Can i use it any site while making it because i am making one site so i need it.please tell me about this all.

Similar Threads

  1. Running a batch file from a remote machine in a VB code
    By Radhu in forum Software Development
    Replies: 1
    Last Post: 14-10-2011, 04:54 PM
  2. Running Powershell script with batch file with parameters?
    By Jaslein in forum Software Development
    Replies: 3
    Last Post: 12-01-2011, 03:36 AM
  3. Shutdown window after running batch file
    By Jaiwanti in forum Operating Systems
    Replies: 4
    Last Post: 13-12-2010, 06:25 PM
  4. Windows scheduler: Running a batch file as another user?
    By Andrew Hodgson in forum Windows Server Help
    Replies: 9
    Last Post: 10-03-2008, 09:48 AM
  5. Running a batch file from another?
    By Linn Kubler in forum Windows Server Help
    Replies: 2
    Last Post: 28-02-2008, 09:57 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,922,553.07345 seconds with 17 queries