Windows Logon Sound change with batchfile

Thengoboy

Honorable
Jun 12, 2013
19
1
10,510
Hi after doing lots of googling i have decided to ask here if someone knows how to change windows logon sound with a batch file. I have tried things such as deleting the original (Windows Logon Sound.wav) and replacing it with a file i chose thats been renamed to the same original name (Windows Logon Sound.wav) and put it in the original location but it wont work for some reason. I dont want to use third party software i just need the batch file to change the logon sound and exit. This is what i have tried

@echo off
c:
cd c:\Windows\Media
del "Windows Logon Sound.wav"
F:
cd F:\MyWavSounds\
rename sound1.wav "Windows Logon Sound.wav"
xcopy /Y "F:\MyWavSounds\Windows Logon Sound.wav" "c:\Windows\Media\Windows Logon Sound.wav"

but it doesn't work for some reason even when i try to explore my way to c:\Windows\Media\ I cant even delete the Windows Logon Sound.wav manually but can someone help me with this batch file im trying to write please it shouldn't be hard but im a beginner.

Ive also tried just over writing it such as

@echo off
xcopy /Y "F:\MyWavSounds\Windows Logon Sound.wav" "C:\Windows\Media\Windows Logon Sound.wav"
exit

but it wont work either please help with a batch file to change the windows 7 logon sound thankyou
 
just to learn and see if its possible, thats why i thought maybe deleting isnt possible but how about tricking it by overwrite with another file so it thinks its the same windows logon sound.wav ?
 
im not sure what you mean i7Baby please explain in more detail i have just tried part of your suggestion with

call "c:\Windows\Media\Windows Logon Sound.wav"

but I'm not sure what you mean by parameters to change?