Batch file command

Microsoft Windows xp professional w/sp2
December 5, 2009 at 01:06:37
Specs: Windows XP

I trying to create a batch file to execute some database queries through osql command. I wanted user to provide inputs through command prompt.
Following command worked
echo Enter Name:
set /p BUName =

Echo Name - %BUName%

But now when I enter my name following is the output

Enter Name:
Name -

Does anybody know what is the problem?

See More: Batch file command

Report •

December 5, 2009 at 04:32:46
Don't you have to:

set /p BUName=


Report •

December 5, 2009 at 05:46:29
Yep. A space is a char.

Helping others achieve escape felicity


Report •

December 5, 2009 at 17:21:32

Thanks its working... Appreciate your help


Report •

Related Solutions

Ask Question