Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Passing Argument to vbs
Name: reno Date: February 16, 2009 at 04:58:10 Pacific OS: XP CPU/Ram: P4 & 1GB Product: Asus / - Subcategory: Batch
Comment:
>msg.vbs echo wsh.echo wsh.arguments(0)
set sharepath=%~dp0
set sharepath=%sharepath:~0,-1%
net share test="%sharepath%"
if %errorlevel%==0 (
wscript msg.vbs "'OK, Share Success' & vbNewLine & '%sharepath% shared as \\compname\test'"
) else (
wscript msg.vbs "Fail to share %ERRORLEVEL%"
)
basically i want to achieve the following echo command in vbs, by passing the message as single argument from batch file. wsh.echo "OK, Share Success" & vbNewLine & "c:\test shared as \\compname\test" how do i pass an argument containing double quote character into vbs. how to escape the special character, i try the caret ^, doesnt work.
or is there something like %* in vbs? arguments(*)?
Summary: Can any one help me transform an javascript html webpage to VB application Here is the code:- var kNoCanonicalCounterpart = 0; var kCapitalLetter = 0; var kSmallLetter = 1; var kDigit = 2; var kPunctu...
Summary: very nice - chi - a couple of questions though - would I add this to the button click event? and if i wanted to pass arguments to the ipconfig command such as "ipconfig /all" - would i include "proces...
Summary: a. All arguments in Java are passed by value. When an argument is a primitive type this means that any change made to its value are only local to the method. When an argument is an object the "value" ...