Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VBS - Ricevere dati in input

8 views
Skip to first unread message

kentucky

unread,
Apr 21, 2010, 8:34:36 AM4/21/10
to
Ciao a tutti, come faccio a ricevere dati in input utilizzando la riga
di comando e non le inputbox ?
Grazie

Edoardo Benussi [MVP]

unread,
Apr 27, 2010, 10:41:04 AM4/27/10
to

"kentucky" <corrado...@gmail.com> ha scritto nel messaggio
news:1e632dc7-f95f-4a73...@12g2000yqi.googlegroups.com...

> Ciao a tutti, come faccio a ricevere dati in input utilizzando la riga
> di comando e non le inputbox ?

vedi qui
http://technet.microsoft.com/en-us/library/ee156599.aspx

--
Edoardo Benussi - e...@mvps.org
Microsoft® MVP - Most Valuable Professional
Management Infrastructure - Systems Administration
https://mvp.support.microsoft.com/Profile/Benussi

Marcello

unread,
Apr 28, 2010, 2:24:18 PM4/28/10
to
Esempio CScript:

C:\MyInput.vbs:
'---------------------------------------
WScript.echo "Your name please:"
MyInput = Wscript.StdIn.ReadLine
WScript.echo "Hello " & MyInput

Wscript.StdIn.ReadLine
'---------------------------------------
Start > Esegui...
Cscript C:\MyInput.vbs

Esempio Batch
:---------------------------------------
@ECHO OFF
SET /p INPUT=Your input please:
ECHO.
ECHO Your input was: %INPUT%
ECHO.
PAUSE
:---------------------------------------

Marcello


kentucky

unread,
May 19, 2010, 4:05:14 AM5/19/10
to

Grandissimi !!!!
GRAZIE

0 new messages