1.

Solve : [beginner]?

Answer»

i would like to put two things pararemeter that the USER will enter , he should enter the name of the SERVER and his USERNAME.With perl i put a standard INPUT how can i do this a batch file

I would like something like that
printf "enter ur username:";
set %toto%=
chomp=%toto% ;
pscp %toto%@SERVER:mydirectory

so what is the syntax in ms dos plz to make something like that

thanks in advance
erwan
You can use the SET statement:

set /p var="prompt"

This will put out a prompt and set the variable value all in one statement.

Hope this helps.



Discussion

No Comment Found