ON 20040704@11:57:18 PM at page: http://www.sxlist.com/language/pcls.htm#38172.7341550926 James Newton[JMN-EFP-786] Published and replied to post 38172.7341550926 by antonysylow |Insert 'Windows NT and above command prompt (and batch files) interpret the & sign as a command seperator. i.e. it starts a new command. so your command line is seen as two seperate lines:
copy Ec
&l5X > LPT2
You can correct that by placing a carat (^) in front of the &

Secondly the copy command is used to copy the contents of one file or device to another and does not copy characters in the command line itself. You want the echo command.

Try this instead:

echo Ec^&l5X>LPT2
' at: '' antonysylow@hotmail.com asks:
Hello,
I am trying to create a batch file to run that will change the number of copies on a HP9000 dn printer.I have found the control commands, the batch file reads as follows
copy Ec(escape charcter ,a left arow ?)&l5X > LPT2 where LPT2 is mapped to the network printer.When I run the HPCOPY.bat file in a command prompt it says
The filename, directory name, or volume label syntax is incorrect
0 file(s) copied.
'l2X' is not recognized as an internal or external command,

I know it is a bit simple for you guys,but can you help me please?
|Delete 'P-' before: '' but after: '