Jump to content

Recommended Posts

Posted (edited)

Over the years, i have made a big file filled with tips and tricks for making my computer easier to use.

One of them is a change-windows login wallpaper, for it to work it needs a folder made.

DirCreate('C:\Windows\System32\oobe\Info\backgrounds\')

but i cant seam to get that line to work. I tried running it as admin, but no folder gets made. I tried the script in a different location and it works. Is there some special trick for getting it to work inside Windows, i thought it running as admin would of done the trick :(

Edited by IanN1990
Posted

Which Windows version do you run?

My UDFs and Tutorials:

  Reveal hidden contents

 

  • Moderators
Posted

IanN1990,

If you are running Vista+ try adding #requireadmin to the script - to normal users that folder is not available for writing. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

I personally wouldn't mess with that folder for backgrounds, there are easier ways to achieve this.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

I know what the OPs next question will be ;)

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

haha ^^ first i was like "how do you know my next question, when even i dont know it" ^^

but yea...whats the easier way of achieving it ?

Edited by IanN1990
Posted

I think that you have to change the folder permission. Those folder are protected by OS and you can't modify that, without changing permission.

Hi

My UDF: NetInfo UDF Play with your network, check your download/upload speed and much more! YTAPI Easy to use YouTube API, now you can easy retrive all needed info from a video. NavInfo Check if a specific browser is installed and retrive other usefull information. YWeather Easy to use Yahoo Weather API, now you can easily retrive details about the weather in a specific region. No-IP UDF Easily update your no-ip hostname(s).

My Script: Wallpaper Changer Change you wallpaper dinamically, you can also download your wallpaper from your website and share it with all!   My Snippet: _ImageSaveToBMPConvert an image to bmp format. _SciteGOTO Open a file in SciTE at specific fileline. _FileToHex Show the hex code of a specified file

Posted

Guinness, now it's your turn ...

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Use the folder C:WindowsWebWallpaper and see if you can copy the files there. That folder holds the default background image(s) for Windows and should be accessible.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

  Reveal hidden contents

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

Google? Bing? DDG? I don't know off the top of my head the exact folder or registry key, but I was hoping you would probably do some digging around.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Took me longer to type this post >> http://stackoverflow.com/questions/11278707/wheres-the-wallpaper-registry-key-in-windows-8

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

@Nessie

I can make the folders normally, by right-clicking "new folder" though it does require admin. So the script should be able to do it as well, as long as it has admin.

@BrewManNH

The location you gave, i am able to make folders there.

@Guiness

I am not sure you and i are on the same page :)

I am trying to change the windows lock / login screen background.

From past online research the only way i know this can be done is by

C:\Windows\System32\oobeinfobackgroundsbackgroundDefault.jpg which needs to be less then 250 KB in size. Then with this Regedit.

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAuthenticationLogonUIBackground]

"OEMBackground"=dword:00000001

Edited by IanN1990
Posted

OK, my mistake. Sorry.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

#RequireAdmin

DirCreate('C:WindowsSysnativeoobeinfobackgrounds')

Is the answer, its to do with 64 being redirected to 32 or something. Link can be found here.

http://www.driveridentifier.com/blog/?p=89

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...