Jump to content


  • 0
Brandon23

Batch File Copy

Question

1 answer to this question

Recommended Posts

  • 0

I'm looking for the best way to copy a batch file to the desktop on a windows 7 machine.

 

Will this work? If so where do I put the batch file on my SCCM server?

cmd /c copy ~%dp0install.bat C:\Users\Public\Desktop /y

 

 

Try this ?

 

Create a txt file with computer names and use the below batch script to copy to the spcified location.

 


@Echo Off

Title Copy files to the specified folder

FOR /F  %%c IN (D:\computers.txt) Do (XCopy D:\eskon.txt [url="file://\%%cC$UsersPublicDesktop"]\\%%c\C$\Users\Public\Desktop[/url] \)

Echo Files copied.

Exit

 

 

 

 

 

 

 

 

Share this post


Link to post
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
Answer this question...

×   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.

Loading...


×
×
  • 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.