Batch File

pts.
Tags:
Programming Languages
I am looking for some help composing a batch file that will copy a folder on my LAN to C in a folder on the local machine. Thank you

Answer Wiki

Thanks. We'll let you know when a new response is added.

At the risk of sounding rude – when you submit a question, you should provide as much background as necessary.

However, I’ll make the following assumptions:
1) The folder on the LAN drive is always mapped to the same drive letter on the local system
2) The folder location doesn’t change
3) The folder name doesn’t change

Create a text file named copylan.bat containing your version of the following:

copy /y l:so-and-so c:so-and-so

The /y prevents you from being prompted in case the same files already exist. This works if so-and-so are directory names OR file names.

For more info on this – open a command window on your system and type HELP COPY <Enter>

Then either put the batch file name into the AT utility, or for on-demand, copy a shortcut to the batch file to your desktop, or other folder, or put a shortcut into the Startup folder so that the copy is performed on login.

Hope that helps,

Bob

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • huntersladekirk
    how do i find out if someone has put a chip in my cell phone? im a a single mom & my child & i may be in danger.
    10 pointsBadges:
    report
  • TomLiotta
    how do i find out if someone has put a chip in my cell phone? This doesn't seem related at all to this thread. You should open a question of your own if you want attention to be given to it. . However, there isn't much point in opening a question because the chances are effectively zero that anyone has put a "chip" in your phone unless it was the phone manufacturer. And in that case cast, the chip is supposed to be there. . Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following