...

View Full Version : Delete REG key?



Quiet Storm
04-14-2003, 01:41 AM
I've scripts that delete files/folders on startup and was wondering how to delete regestry keys on startup or shutdown...

:cool:

mouse
04-17-2003, 10:59 PM
I'm not at my PC so don't have a concrete example, but I'm sure if you stuck the .reg(?) file in the startup folder, it'd run and do whatever regedits you want. Not sure about shutdown...

Quiet Storm
04-19-2003, 11:49 PM
Hmm...

I tried making a blank copy of the reg file and put it in the startup folder, but is seems like that only adds to the existing reg.

If I have a reg file:

1=a
2=b
3=c
4=d

and I try to run another blank copy of the reg, it does nothing. If I use blank values:

1=''
2=''
3=''
4=''

it, again, does nothing. If I use different values:

1=w
2=x
3=y
4=z

it will replace the old values with the new... but I can't seem to just delete the darn reg file altogether.

:mad:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum