Brandon23 Posted August 5, 2010 Report post Posted August 5, 2010 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 Quote Share this post Link to post Share on other sites More sharing options...
0 Eswar Koneti Posted August 6, 2010 Report post Posted August 6, 2010 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 Quote Share this post Link to post Share on other sites More sharing options...
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
Share this post
Link to post
Share on other sites