Where to start.
1. The "This will download the file..." line is of course n invalid command and will throw an error. Try using the echo statement to output text to screen if that's what you want.
Code:
echo "This text will be output to screen, and not interpreted as a command and tried to run"
2.This entire line:
Code:
xcopy:C\Charles\word-program\\batch\"HPCK to HOME.COM"
\\HOME\c:|Download\"HPCK to HOME.COM"
Is invalid.
A. You shouldn't be placing a colon ":" after the xcopy command.
B. You have two slashes in your path, which likely makes it invalid.
C. You can't have quotes in the middle of your file path, either the entire path is surrounded or nothing is.
D. You can't access the networked computer's C drive like that. That is again an invalid path.
Either you share C: drive correctly, or you can attempt to use the C$ administrative share to access it. However the admin share is only available if you are an administrator in both computers.
It should end up looking something like this:
Code:
@ECHO OFF
Cd\
C:
[red]echo[/red] [green]This will download the file "HPCK to HOME.com" to the computer HOME with the name "HPCK to HOME.COM"[/green]
xcopy [red]"[/red][green]C:\Charles\word-program\batch\HPCK to HOME.COM[/green][red]"[/red] [green]\\HOME\cdrivesharename\Download\[/green]
Also I'm pretty sure Windows Vista can run .BAT files just fine.
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
Behind the Web, Tips and Tricks for Web Development.