Results 1 to 4 of 4

Thread: How do i run vbs script in XP

  1. #1
    Join Date
    Dec 2008
    Posts
    50

    idea How do i run vbs script in XP

    Hello Folks,

    I'm running Windows Xp as my operating system. I would like to know that how do i run vbs script on it. I had tried it in the command prompt, but was continuously getting the following error 'currentpagefilesettings.vbs' is not recognized as an internal or external command. So do any one have any idea about vbs script and how do i run it on Windows Xp? Any kind of help would be appreciated.

    Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How do i run vbs script in XP

    Follow the below steps.

    ' From the book "Windows XP Cookbook"
    ' ISBN: 0596007256

    ' ------ SCRIPT CONFIGURATION ------
    strComputer = "<HostName>"
    strCommand = "cscript.exe c:\scripts\dircheck.vbs"
    ' ------ END CONFIGURATION ---------
    set objController = WScript.CreateObject("WSHController")
    set objRemoteScript = objController.CreateScript(strCommand, strComputer)
    WScript.ConnectObject objRemoteScript, "remote_"
    objRemoteScript.Execute
    do While objRemoteScript.Status <> 2
    WScript.Sleep 100
    loop
    WScript.DisconnectObject objRemoteScript

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: How do i run vbs script in XP

    Is the VBScript the only thing in the policy that is not executing? I ask this because the problem may be with the GPO and not necessarily executing the VBScript on XP. Try adding something else to the policy other than a VBScript and see if it gets executed. If not, research why your policy isn't being implemented.

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: How do i run vbs script in XP

    Windows Script Host is the successor of batch files and enables scripts to be executed directly on the Windows desktop or command console, without the need to embed those scripts in an HTML document. Scripts can be run directly from the desktop by clicking on a script file, or from the command console. WSH provides a low-memory scripting host that is ideal for non-interactive scripting needs, such as logon scripting, administrative scripting, and so on.

    Windows Script Host comes free with Windows 2000/XP and 98/ME. If you have Windows 95 or NT, WSH can be downloaded for free from Microsoft as part of a package called "Windows Script 5.1".

Similar Threads

  1. Replies: 3
    Last Post: 17-08-2010, 09:06 PM
  2. Is it possible to execute Perl script within another script?
    By RasMus in forum Software Development
    Replies: 2
    Last Post: 21-07-2009, 10:57 PM
  3. Word 2008 + bibfuse: no script in script menu
    By deval4u in forum Software Development
    Replies: 5
    Last Post: 06-04-2009, 12:53 PM
  4. Replies: 2
    Last Post: 14-01-2009, 01:25 PM
  5. Startup Script or Login Script ??
    By WANNABE in forum Active Directory
    Replies: 5
    Last Post: 22-12-2006, 07:44 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,714,027,166.98436 seconds with 17 queries