473,416 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

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 4398
I have solve this By Search
Ò»¡¢Ê²Ã´ÊÇWSH£¿

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

£*£*

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

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

£*£*

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

£*£*´ó¼ÒÖªµÀ£¬½Å±¾ÓïÑÔ£¨°üÀ¨JavaScriptºÍVBscriptÓï ÑԵȣ©¾*³£»á±»Ö²ÈëÍøÒ³Ö®ÖУ¨ÆäÖаüÀ¨ 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µÄ±à³Ì¸üºÃ£¬ºÇºÇ£©Ó ïÑԵĻù´¡£¬Ñ§»á¿´¶®WSH½Å ±¾ÓïÑԵijÌÐò²¢²»ÊÇÒ»¼þÄÑÊ¡£È¥C:WINDOWSSAMPLESWSHÄ ¿
¼ÒÔϽ«¿´¿´°É£¡ÀïÃæÌṩÁ˼¸Àà¾*µäµÄ½Å±¾Àý×Ó£¬¶øÇÒ ·Ö±ðÌṩÁËVBScriptºÍ
JavaScriptÁ½¸ö°æ±¾£¬ÎÒÃÇÖ»ÒªÓüÇʱ¾´ò¿ªËüÃDz¢×Ðϸ Ñо¿¾Í²»ÄÑѧµ½Ò»Ð©»ù±¾µÄWSHÓ¦Óá£

£*£*

£*£*ÄãÖ»ÐèÔÚ¼Çʱ¾ÖÐÒÀ´ÎÊäÈëÒÔÏÂÿ¸öʵÀýÖеĴúÂ룬 ²¢±£´æΪÏàÓ¦µÄ¡°*.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\script.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\script.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.com> wrote in message
news:ub**************@TK2MSFTNGP12.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
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...
4
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...
3
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...
3
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
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...
4
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...
2
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...
4
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
by: P1u70 | last post by:
I would like to decompile a *nux execute file to source file , any tools for it ? thx!
2
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");...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...
0
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...

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.