jamios99 Posted February 27, 2015 Report post Posted February 27, 2015 Hello, I read up that you need to use the "%~dp0 to specify your working directory to call a Batch file, but having some issues. All I want to do is simply a background off the DP and place it a in a folder called Data IT on the C drive. The name of the background is called Servier-Sept-2013.jpg Here is my information Command Line : cmd.exe /c copy_wallpaper.cmd Path of my Batch file : D:\SMSPKGD$\CA100026 Name of Batch file : Copy_wallpaper.cmd md C:\DataIT xcopy "%~dp0Servier-Sept-2013.jpg" "C:\DataIT" It fails with an error message of 1. Only thing that comes to mind is that we have a GPO that creates the Data IT folder already Quote Share this post Link to post Share on other sites More sharing options...
Peter van der Woude Posted February 27, 2015 Report post Posted February 27, 2015 Did you try the batch file outside of ConfigMgr? It could be that it's asking for a confirmation.. Quote Share this post Link to post Share on other sites More sharing options...