[wpkg-users] Renaming file in System32

Marco Schmidt schmidt at fgcz.ethz.ch
Thu Aug 18 07:22:28 CEST 2016


Besides the copy and rename problem, you might want to take a look on this:

https://technet.microsoft.com/en-us/sysinternals/bginfo

Greetings ...
 Marco


On 17.08.2016 10:19, Jan-Niklas.Nowak at materna.de wrote:
> Hi
> 
>  
> 
> I’ve been trying to copy images to a folder within System32 and then
> rename one of them.
> 
> I created one package responsible to copy the images to the path and
> then rename one file.
> 
>  
> 
> The copying works. Since I’m using xcopy the missing folders are being
> generated automatically.
> 
> I can see, that the files have been copied correctly and rename them
> using the explorer.
> 
>  
> 
> However any attempt of renaming one file afterwards failed.
> 
> Strangely this seems to only happen when using wpkg.
> 
> When trying to execute it manually using cmd it works just fine.
> 
> Whenever using wpkg I get the “The system cannot find the path
> specified” error.
> 
> I tried to run the package multiple times to ensure that the images are
> properly copied.
> 
> I tried to run the package without the xcopy command to make sure the
> files are not in use.
> 
> Those were not the issue.
> 
>  
> 
> Below I will include the code snippets I used without the boilerplate
> package structure or checks:
> 
>  
> 
> <install cmd='xcopy "%RESOURCES%\images\*"
> "%windir%\System32\oobe\info\backgrounds" /y /i /q /r' />
> 
> <install cmd='rename
> "%windir%\System32\oobe\info\backgrounds\old_filename.jpg"
> backgroundDefault.jpg ' />
> 
>  
> 
> %RESOURCES% links to the folder which includes the images that have to
> be copied.
> 
>  
> 
> Best
> 
>  
> 
> *Jan-Niklas Nowak**
> *Auszubildener zum
> 
> Fachinformatiker
> Anwendungsentwicklung
> 
>  
> 
> Business Line Mobility
> ______________________________________________
> Telefon: +49 231 5599-8125
> E-Mail: jan.nowak at materna.de
> 
> Materna GmbH | Voßkuhle 37 | D-44141 Dortmund | Germany
> Geschäftsführer: Helmut Binder, Ralph Hartwig
> Amtsgericht Dortmund HRB 5839
> 
>  
> 
> 
> 
> ---------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/wpkg-users
> 


More information about the wpkg-users mailing list