prabashk Posted August 9, 2007 Report Share Posted August 9, 2007 I need to crate a batch file to copy a file name 'lpt$vpn.225' from c:\program file\trend micro\officescan clients\ to another remote pc (let say pc 01) \\pc01\c$\program file\trend micro\officescan clients\ folder.what is the coomand i should use and how to cerate a batch file for it.I use 'copy c:\program file\trend micro\officescan clients\lptvpn.225 \\pc01\c$\program file\trend micro\officescan clients\' but fail. Even I'm logon to domain as domain administrator pls help meThanks, Quote Link to comment Share on other sites More sharing options...
mcb2001 Posted August 9, 2007 Report Share Posted August 9, 2007 I need to crate a batch file to copy a file name 'lpt$vpn.225' from c:\program file\trend micro\officescan clients\ to another remote pc (let say pc 01) \\pc01\c$\program file\trend micro\officescan clients\ folder.what is the coomand i should use and how to cerate a batch file for it.I use 'copy c:\program file\trend micro\officescan clients\lptvpn.225 \\pc01\c$\program file\trend micro\officescan clients\' but fail. Even I'm logon to domain as domain administrator pls help meThanks,first of all - you should include the error message, which would help us help you :-)My first guess is that your problem is concerning the spaces in your "script"...so replace it with:copy c:\"program file"\"trend micro"\"officescan clients"\lptvpn.225 \\pc01\c$\"program file"\"trend micro"\"officescan clients"\and see if it works... if it doesn't please feel free to write back, and include the error message :-) Quote Link to comment Share on other sites More sharing options...
Scarecrow Man Posted August 9, 2007 Report Share Posted August 9, 2007 are you sure its 'program file' not 'program files'? Make sure everything is spelled correctly. Quote Link to comment Share on other sites More sharing options...
prabashk Posted August 10, 2007 Author Report Share Posted August 10, 2007 I need to crate a batch file to copy a file name 'lpt$vpn.225' from c:\program file\trend micro\officescan clients\ to another remote pc (let say pc 01) \\pc01\c$\program file\trend micro\officescan clients\ folder.what is the coomand i should use and how to cerate a batch file for it.I use 'copy c:\program file\trend micro\officescan clients\lptvpn.225 \\pc01\c$\program file\trend micro\officescan clients\' but fail. Even I'm logon to domain as domain administrator pls help meThanks,first of all - you should include the error message, which would help us help you :-)My first guess is that your problem is concerning the spaces in your "script"...so replace it with:copy c:\"program file"\"trend micro"\"officescan clients"\lptvpn.225 \\pc01\c$\"program file"\"trend micro"\"officescan clients"\and see if it works... if it doesn't please feel free to write back, and include the error message :-)Dear Sir,It works well. Thank you very much. Quote Link to comment Share on other sites More sharing options...
mcb2001 Posted August 10, 2007 Report Share Posted August 10, 2007 your more then welcome... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.