The DOS batch programming language doesn't have a feature to input a variable so given only the old DOS batch programming language you won't get this done.
Bob
I am trying to make a batch file that will :
1)allow user input for the destination of the network computer to copy files from
2) copy a file from the unit POS to the destination
heres what I have so far can you help me with what im missing
@Echo off
SET /P POS=[Enter the POS to copy files from]
** DEL "C:\Documents and Settings\All Users\Desktop\*.*"
XCOPY "%POS%\Documents and Settings\All Users\Start Menu\Programs\Startup\test.txt" "C:\Documents and Settings\All Users\Desktop\"/y
for the format of the pos to copy from i can enter either
\\pos1234-123
or
pos1234-123

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic