I want to create a batch file that is later going to be converted to an exe that changes the wallpaper of my computer as soon as I open it. Sorry I have no idea how to do this D:
相关问题
- xcopy include folder
- Batch file if string starts by
- Jenkins - cmd is not recognized
- How to download and run a .exe file c#
- String Manipulation with case sensitivity
相关文章
- Extracting columns from text file using Perl one-l
- How can one batch file get the exit code of anothe
- How to make jenkins fail at a failing windows batc
- Problems using start-process to call other powersh
- Python utilizing multiple processors
- Why do all Pre-build or Post-build events in Visua
- Windows batch file - how to loop through files in
- Set variable in “if” block
The usual answer to this question is
to set the adecuated entry in the registry, followed by
to inform the system of the changes.
BUT, from windows Vista this approach does not work. Or at least not as intended. The changes to the registry will apply on new logon. The only robust way to get the wallpaper changed instantly is to use the windows api.
For a powershell solution, you can find a solution here
If you have access to a C compiler, this code should do the same (tested with mingw-gcc)