473,770 Members | 5,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to execute a .vbs file??

I have installed the Updater Application Block, and then I should Deploy the
QuickStarts.

" Install the QuickStarts
After you install the Updater Application Block, you should install the
QuickStart applications by using the Deploy QuickStarts option on the
QuickStarts submenu. This creates the Web folders required by the QuickStart
samples. You can remove the QuickStarts from your computer by using the
Uninstall QuickStarts option on the QuickStarts submenu."

But I don't know how to execute the Depoly.vbs ???

Thank you.
Nov 17 '05 #1
1 4434
I have solve this By Search
Ò»¡¢Ê²Ã´ÊÇWSH£¿

£*£*WSHÊÇWindow s Scripting Host£¨Windows½Å ±¾Ö÷»ú£©µÄËõÂÔÐ Îʽ¡£WSHÕâ¸ö¸ÅÄ î×îÔç³öÏÖÓÚWind ows 98²Ù×÷ϵͳ£¬ÊÇÒ »¸ö»ùÓÚ32 λ Windows ƽ̨¡¢²¢¶ÀÁ¢ÓÚÓ ïÑԵĽű¾ÔËÐл·
¾³¡£±ÈÈ磺Äã×Ô¼ º±àдÁËÒ»¸ö½Å±¾ Îļþ£¬Èçºó׺Ϊ .vbs »ò .js µÄÎļþ£¬È»ºóÔÚ
Windows ÏÂË«»÷ ²¢Ö´ÐÐËü£¬Õâʱ£ ¬ÏµÍ³¾Í»á×Ô¶¯µ÷ ÓÃÒ»¸öÊʵ±µÄ³ÌÐ òÀ´¶ÔËü½øÐнâÊÍ ²¢Ö´ÐУ¬¶øÕâ¸ö³ ÌÐò£¬¾ÍÊÇ Windows Scripting Host£¬³ÌÐòÖ´ÐÐΠļþÃûΪ Wscript.exe £¨ÈôÊÇÔÚ
DOSÃüÁîÌáʾ·ûÏ £¬ÔòΪ Cscript.exe£©¡£

£*£*

£*£*ÏëÖªµÀ×Ô¼ºµ Ä»úÆ÷ÉÏÓÐûÓÐWS HÂ𣿲鿴һÏÂÄ㠵ĻúÆ÷ÀïÓÐûÓС °Wscipt.exe¡±»ò Õß¡°Cscript.exe ¡±ÕâÁ½¸öÎļþ¾Í¿ ÉÒÔÁË¡£Èç¹ûÕÒµ½ £¬¹§ ϲÄ㣡ÄãÒѾ*°²× °ÁËWSH¡£·ñÔò£¬× Ô¼ºÊÖ¶¯°²×°°É£º

£*£*ÔÚWindows 98»·¾³Ï£¬WSHÊÇ ×÷Ϊ²Ù×÷ϵͳµÄÒ »¸ö×é¼þ×Ô¶¯°²×° µÄ£¬Èç¹û²»É÷¶ªÊ §ÁËÕâ¸ö×é¼þ£¬¿É ÒÔ´ÓÒÀ´Î´ò¿ª¡°¿ ØÖÆÃæ°å-->Ìí¼Ó/ɾ³ý³Ì Ðò--¡µWindows°²×°³Ì Ðò--¡µ¸½¼þ¡±,È»ºó½« ¡°Windows
Scripting Host¡±Ç°µÄ»®ÉÏ¡ °¡Ì¡±£¬ÔÙÈ·¶¨¼´ ¿ÉÍê³ÉWSH×é¼þµÄ °²×°¡£

£*£*

£*£*¶þ¡¢½Å±¾ÓïÑ ÔÓëWSHµÄ¹Øϵ

£*£*´ó¼ÒÖªµÀ£¬½ ű¾ÓïÑÔ£¨°üÀ¨Ja vaScriptºÍVBscr iptÓïÑԵȣ©¾*³£ »á±»Ö²ÈëÍøÒ³Ö®Ö Ð£¨ÆäÖаüÀ¨ HTML Ò³Ãæ¿Í»§»ú¶ËºÍ ASP Ò³Ãæ·þÎñÆ÷¶Ë£© ¡£¶ÔÓÚÖ²Èë HTML Ò³ÃæµÄ½Å±¾£¬Æä
ËùÐèµÄ½âÎöÒýÇæ» áÓÉ IE ÕâÑùµÄÍøÒ³ä¯ÀÀÆ ÷ÔØÈ룻¶ÔÓÚÖ²Èë ASP Ò³ÃæµÄ½Å±¾£¬ÆäË ùÐèµÄ½âÎöÒýÇæ»á ÓÉ IIS£¨ Internet Information Services£©Ìṩ¡ £¶ø¶ÔÓÚ³öÏÖÔÚ HTML ºÍ ASP
Ò³ÃæÖ®ÍâµÄ½Å±¾£ ¨ËüÃdz£ÒÔ¶ÀÁ¢µÄ ÎļþÐÎʽ´æÔÚ£©£ ¬¾ÍÐèÒª¾*ÓÉ WSH À´ ´¦ÀíÁË¡£ÐèҪ˵à ÷µÄÊÇ£ºWSH ÒªÏëÕý³£¹¤×÷£¬» ¹Òª°²×°IE 3.0 »ò¸ü¸ß°æ±¾µÄ IE£¬ÒòΪ WSH ÔÚ¹¤×÷ʱ»áµ÷ÓÃ
IE ÖÐµÄ VBScript ºÍ JavaScript¡¡½âÎ öÒýÇæ¡£ [δ½áÊø][iduba_page]ÔÚÕâЩ±»Ö²ÓÚÍøÒ ³µÄ½Å±¾ÓïÑÔÖУ¬ ¾ø´ó¶àÊýÊÇÓëÍø 簲ȫÎ޹صġ£µ« Ò²ÓÐÉÙÊý±ðÓÐÓÃРĵĺÃÊ Õߣ¬°ÑһЩÑÏÖØÎ £¼°ÍøÂ簲ȫµÄ´ú Â루ÎÒÃÇ
³£³£³Æ֮Ϊ¡°¶ñÒ â´úÂ롱£¬ËûÃÇͨ ³£¶¼ÒªÍ¨¹ýÐÞ¸Ä× ¢²á±í´ïµ½¡°¶ñÒâ ¡±µÄÄ¿µÄ£¡£©£¬» ì·ÅÔÚÕý³£µÄ ½Å±¾Ö®ÖУ¬³£³£È ÃÎÒÃÇ·À²»Ê¤·À¡£ µ«ÊÇ£¬Èç¹ûÎÒÃÇÁ ˽âÒ»µã¹ØÓڽű¾ ÓïÑÔµÄÖª
ʶ£¬ÕâЩ¡°¼¿Á©¡ ±¶¼ÊǷdz£ÈÝÒ×ʶ ÆƵġ£»¹ÊÇÈÃÎÒà ǴӼ¸¸ö¼òµ¥ µÄʵÀý¿ªÊ¼°É¡*¡ *

£*£*

£*£*Èý¡¢WSHÓ¦ÓÃ ¾ÙÀý

£*£*WSH¿ÉÒÔ´¦Àí ½Å±¾³ÌÐò£¬ÔõÑùÔ Ä¶ÁºÍ±àдWSHµÄ½ ű¾Ô´ÎļþÄØ£¿Ö» ÒªÄãÓÐÒ»µãBasic £¨»áVBµÄ±à³Ì¸üº 㬺Ǻǣ©ÓïÑ﵀ »ù´¡£¬Ñ§»á¿´¶®W SH½Å ±¾ÓïÑԵijÌÐò²¢² »ÊÇÒ»¼þÄÑÊ¡£È¥ C:WINDOWSSAMPLE SWSHÄ¿
¼ÒÔϽ«¿´¿´°É£ ¡ÀïÃæÌṩÁ˼¸Àà ¾*µäµÄ½Å±¾Àý×Ó£ ¬¶øÇÒ·Ö±ðÌṩÁË VBScriptºÍ
JavaScriptÁ½¸ö° æ±¾£¬ÎÒÃÇÖ»ÒªÓà ¼Çʱ¾´ò¿ªËüÃDz ¢×ÐϸÑо¿¾Í²»ÄÑ Ñ§µ½Ò»Ð©»ù±¾µÄW SHÓ¦Óá£

£*£*

£*£*ÄãÖ»ÐèÔÚ¼ÇÊ Â±¾ÖÐÒÀ´ÎÊäÈëÒÔ ÏÂÿ¸öʵÀýÖеĴ úÂ룬²¢±£´æΪÏà Ó¦µÄ¡°*.vbs¡±ÎÄ ¼þ£¬Ë«»÷Õâ¸öÎļ þ£¬Äã¾Í¿ÉÒÔ¿´µ½ ÏàÓ¦µÄЧ¹ûÁË¡£



Q: How do I open script files? Trying the above solution makes Windows XP
throw an error?

A: This is similar to the *.js association problem. Some machines seem to,
for some reason, lose their *.vbs association. It's not that the files open
with dreamweaver or whatever -- it's that the machine just doesn't know how
to run them. If you have a scheduled task, "Could not run" will appear in
the status column.

So, you're a smart person and read through the FAQ. You find the *.js
extension problem, and you try that fix: you run it as "wscript
c:\path\to\scri pt.vbs". But that, in turn, produces a pop-up error, this
time a "Windows Scripting Host" error: "There is no script engine for file
extension '.vbs'." So, for some reason, wscript doesn't even know what to do
with *.vbs files.

The solution to this problem is to run the script as:

wscript //e:vbscript c:\path\to\scri pt.vbs

The "//e:vbscript" tells wscript to use the vbscript engine to parse the
script. It will then run correctly.

A few alternative solutions, perhaps easier are:

1.. Rename it .vbe (VBScript Encoded Script File). Not sure if this is a
bad idea, but it seemed to work for some scripts.
2.. Make a new association for VBS. Open up my computer, select Tools
menu-> Folder Options, and go to the File Types tab. There probably isn't a
VBS association listed if you have this problem. Select New, type in VBS,
and hit Advanced>>. Then, from the pull-down menu, select "VBScript Script
File". Making this selection automatically takes care of the association,
along with the //e:vbscript problem. This is probably the "correct"
solution...
This problems usually occurs only on Windows XP machines, but the cause is
not known. A Microsoft KB article on this issue can be found here. Thanks
goes to Bob_2k for writing this FAQ entry.

"Allen" <Al******@126.c om> wrote in message
news:ub******** ******@TK2MSFTN GP12.phx.gbl...
I have installed the Updater Application Block, and then I should Deploy
the QuickStarts.

" Install the QuickStarts
After you install the Updater Application Block, you should install the
QuickStart applications by using the Deploy QuickStarts option on the
QuickStarts submenu. This creates the Web folders required by the
QuickStart samples. You can remove the QuickStarts from your computer by
using the Uninstall QuickStarts option on the QuickStarts submenu."

But I don't know how to execute the Depoly.vbs ???

Thank you.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1413
by: HJK | last post by:
I'm not familiar with ASP and server side scripting. I want to include JScript from file. Can it be done ? Its the part with the Options code I want to put in a Options.js file not accessible from internet side. It will also be nice to extend it to include from different .js files later. See my ASP example below wich I get to work in IIS 5.0
4
9897
by: Kartik | last post by:
Hi, I have an ASP.NET application using VB.NET.I am sending a DOS command to a machine on the network to print a file. This is achieved using xp_cmdshell Dim str As String = "xp_cmdshell ""type " & nwkfilepath & " > " & pPrinterName & " """
3
4187
by: No One | last post by:
I have a C# programme that needs to run some of Windows executable files. I first need to check if that programme is already running, and if it is, simply bring the window to the front. How can I search for a Window handle of an execute file?
3
1402
by: Christian Blackburn | last post by:
Hi Gang, I would like to have my program use the built in Move and Copy Dialogs that are used by Windows Explorer/My Computer. Thanks in Advance, Christian Blackburn
3
1805
by: James Wong | last post by:
Hi, I have some XML config file in my VB project. When I use clickonce to publish my project, the execute files and the xml data files are not in the same folder of the client computer. How can I get the real path of my xml data files? Thanks for example, execute file path:
4
5872
by: Gabe Moothart | last post by:
Hello, In one of my asp.net applications I test the existence of a file, like so: File.Exists(Server.MapPath("/path/file.jpg"))); This was failing, even though the path returned by Server.MapPath was clearly present. After some debugging, I discovered that the the asp.net account didn't have permission to execute File.Exists. Apparently File.Exists simply returns "false" instead of throwing an exception if it doesn't have the...
2
2979
by: Sike | last post by:
Hi everyone, I've been browsing this and a few other related newsgroups trying to get my head around this problem, and so far all the trails seem to go cold, without an acceptable solution being reached. I'm posting here because there seems to be a few MVP's knocking around, and if they dont know, then it's a safe bet nobody does. I'm beginning to think that what I want to do is simply not possible - but i'll put it out there once...
4
5050
by: ad | last post by:
I used vs2005 to develop a winform project. How can I make my project as a single executable file?
2
3882
by: P1u70 | last post by:
I would like to decompile a *nux execute file to source file , any tools for it ? thx!
2
2110
by: tanyali | last post by:
I am using Linux Suse10, php 5 . execute a shell script in a terminal, it works. output is a file with data . when I use it in php like this (code : php) : chdir("../file"); $cmd="./execute-file"; shell_exec($cmd);
0
9592
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10231
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10059
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9871
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8887
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7416
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6679
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5313
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5452
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.