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

Author Topic: Getting input from a user in a batch file  (Read 3894 times)

0 Members and 1 Guest are viewing this topic.

cplloyd

  • Guest
Getting input from a user in a batch file
« on: August 17, 2004, 02:10:30 AM »
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.

johnwill

  • Guest
Re: Getting input from a user in a batch file
« Reply #1 on: August 17, 2004, 01:58:28 PM »
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/

cplloyd

  • Guest
Re: Getting input from a user in a batch file
« Reply #2 on: August 17, 2004, 02:46:28 PM »
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.