Jump to content

How to crate batch file


prabashk
 Share

Recommended Posts

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 me

Thanks,

Link to comment
Share on other sites

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 me

Thanks,

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 :-)

Link to comment
Share on other sites

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 me

Thanks,

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy