1.

Solve : Getting input from a user in a batch file?

Answer»

I'm writing a simple XCOPY batch file and I want the user to input a directory name.  I've seen this done quite some time ago (pre Win 95) but just can't remember how it was done.  The input would have to RESIDE in a variable within the program.

Anyone got an idea?  THANKS in advance,

Paul.
I always used one of the many batch enhancers in the old bare DOS days.  Nowadays, I use AutoIt http://www.autoitscript.com/autoit3/ for this kind of task.  For a bunch of old-style DOS utilities, try http://garbo.uwasa.fi/pc/ Quote

I always used one of the many batch enhancers in the old bare DOS days.  Nowadays, I use AutoIt http://www.autoitscript.com/autoit3/ for this kind of task.  For a bunch of old-style DOS utilities, try http://garbo.uwasa.fi/pc/


Many thanks, John.  I think it was the ask utility that I had seen used before.  I'll CHECK out the autoit tools too - I hadn't HEARD of this before.

Paul.


Discussion

No Comment Found