Welcome to Scripting Forums Sign in | Join | Help
in Search

To execute .wsf script in another .wsf script

Last post 04-27-2007, 1:29 AM by AbqBill. 2 replies.
Sort Posts: Previous Next
  •  04-27-2007, 1:29 AM 713

    To execute .wsf script in another .wsf script

    How to execute .wsf script in another .wsf script?

     

  •  04-27-2007, 8:01 AM 715 in reply to 713

    Re: To execute .wsf script in another .wsf script

    Files that you reference in a .wsf file can't contain XML elements, so you can't execute a .wsf file from another .wsf file. You can execute only language files, such as .vbs files or .js files. 

    Bill Stewart's article "WSH, Part 2: .wsf Files" (http://www.windowsitpro.com/Articles/ArticleID/48692/48692.html) contains a lot of helpful information about .wsf files.

  •  04-27-2007, 11:33 AM 717 in reply to 713

    Re: To execute .wsf script in another .wsf script

    Hi Renuka,

    Karen is correct in that you can't include one wsf file within another using the <script> element's src attribute. However, you can run one WSH script from another using the WshShell object's Run method. I'm not sure which one of these you had in mind.

    HTH,

    Bill

View as RSS news feed in XML
SPONSORED LINKS FEATURED LINKS

Download Data Protection Manager 2007Disaster recovery at a low cost Maximize speed, performance and reliablity of your PCs and servers—automatically!Speed Up Your PC! Try Diskeeper 2008 with InvisiTasking Free Now! Microsoft Learning Snack - Green IT Through Virtualization Many organizations face rising operating costs caused by excessive energy consumption. Virtualization and "Green IT" can help cut these costs. Get the information you need to bring Green IT savings to your business. Order Your Fundamentals CD Today!Register today for your in-depth copy of one of three Fundamental CDs on the following topics – Exchange, SQL, and SharePoint. Microsoft Learning Snack - Virtualization With Windows Server 2008Windows Server 2008 includes virtualization technology that allows many operating systems - including open source - to run on a single host. Come learn the basics of implementing these features. Microsoft Learning Snack - Virtualization BasicsWith virtualization, computing components essentially become on-demand services, freeing each element of a system from the others. This short video explains the needs, benefits, and technologies behind virtualization. Microsoft Learning Snack - Virtualization BasicsWith virtualization, computing components essentially become on-demand services, freeing each element of a system from the others. This short video explains the needs, benefits, and technologies behind virtualization. Microsoft Learning Snack - Virtualization With Windows Server 2008Windows Server 2008 includes virtualization technology that allows many operating systems - including open source - to run on a single host. Come learn the basics of implementing these features. Empower Your Processes with PowerShell 201Paul Robichaux delves deep into PowerShell how-tos in 3 informative lessons, each followed by live Q&A—all on your own computer! Register today! Microsoft Learning Snack - Green IT Through VirtualizationMany organizations face rising operating costs caused by excessive energy consumption. Virtualization and "Green IT" can help cut these costs. Get the information you need to bring Green IT savings to your business. New Release: Windows IT Pro Master CD13 years of content archives, fast answers with advanced search tools, and full access to WindowsITPro.com—order today!

 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing