Skip to content

Batch File Copy

Featured Replies

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

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

 

 

 

 

 

 

 

 

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.