Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: [beginner]  (Read 3722 times)

0 Members and 1 Guest are viewing this topic.

af_airone

  • Guest
[beginner]
« on: April 28, 2005, 08:38:30 AM »
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%=<stdin>
chomp=%toto% ;
pscp %toto%@SERVER:mydirectory

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

thanks in advance
erwan

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: [beginner]
« Reply #1 on: April 28, 2005, 08:55:35 AM »
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.  8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein