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

Author Topic: command?  (Read 2187 times)

0 Members and 1 Guest are viewing this topic.

Franky

  • Guest
command?
« on: April 03, 2006, 06:39:38 AM »
Hey,

Is there a command that enables a user, while a batch file is running to enter a file name so the batch file can process it?

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: command?
« Reply #1 on: April 03, 2006, 10:33:27 AM »
Depends on your OS. This works on some machines:

Code: [Select]
set /p fname=Enter file name:

You will be prompted with "Enter file name:"

%fname% will take on the value you type in. You can use it anywhere in your batch file where appropriate.

Hope this helps.  8-)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein