By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,967 Members | 1,710 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,967 IT Pros & Developers. It's quick & easy.

How to execute a .vbs file??

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
I have solve this By Search
һʲôWSH

**WSHWindows Scripting HostWindowsűʽWSH Windows 98ϵͳһ32 λ Windows ƽ̨ԵĽűл
磺Լдһűļ׺Ϊ .vbs .js ļȻ
Windows ˫ ִʱϵͳͻԶһʵij нͲִУ򣬾 Windows Scripting HostִļΪ Wscript.exe
DOSʾ£Ϊ Cscript.exe

**

**֪ԼĻûWSH𣿲鿴һĻ ûСWscipt.exeߡCscript.exe Ϳˡҵ ϲ㣡Ѿ*װWSHԼֶװɣ

**Windows 98£WSHΪϵͳһԶװģ ʧԴδ򿪡-->/ɾ --Windowsװ--,Ȼ󽫡Windows
Scripting HostǰĻϡ̡ȷWSHİװ

**

**űWSHĹϵ

**֪űԣJavaScriptVBscript Եȣ*ᱻֲҳ֮Уа 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ĽűԴ ļأֻҪһBasicVBı̸ãǺǣ ԵĻѧῴ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 discussion thread is closed

Replies have been disabled for this discussion.