madbull Posted December 21, 2007 Posted December 21, 2007 I know that the following can remove empty directorys:RDRMDIRBut i am uncertain on how to remove a direcory that is not empty; that is to say a directory containing files, other folders etc.Thanks,PS.I am a pretty good batch creator etc (well getting there).
madbull Posted December 21, 2007 Author Posted December 21, 2007 how about:RD /S /QYes thanks m8.I must be slacking as now you mention it i reliase i knew it; /s (removes tree) /q (no prompt).Thanks again,
diesel_98a Posted December 21, 2007 Posted December 21, 2007 don't worry about it........u knew it but just need a refresher.........i still need a refresher from time to time.........
madbull Posted December 21, 2007 Author Posted December 21, 2007 don't worry about it........u knew it but just need a refresher.........i still need a refresher from time to time.........Thats true,I was wondering if you might be able to help me also;i wrote this batch script to copy the wpa files (backed up - activated state) to system32. (and rename the ones in system32).Here is the script:@echo offren %SYSTEMROOT%\system32\wpa.dbl wpa.dbl.nonactivatedxcopy a:\wpa.bak %SYSTEMROOT%\system32\wpa.bak /qxcopy a:\wpa.dbl %SYSTEMROOT%\system32\wpa.dbl /q%SYSTEMROOT%\REGEDIT.EXE /S activate.regEXITThen i saw the very same script (give or take a little) on another forum (might've been this one) but that one had an extra line of code:%SYSTEMROOT%\REGEDIT.EXE /S activate.regthe thing i can't undestand is what this does (exactly) i mean i know what the commands do;but not regarding the registry.Any help appreciated; Thanks again,
Arie Posted December 21, 2007 Posted December 21, 2007 Then i saw the very same script (give or take a little) on another forum (might've been this one) but that one had an extra line of code:%SYSTEMROOT%\REGEDIT.EXE /S activate.regthe thing i can't undestand is what this does (exactly) i mean i know what the commands do;but not regarding the registry.This command imports a file named "activate.reg" silently into your Registry.
madbull Posted December 21, 2007 Author Posted December 21, 2007 Then i saw the very same script (give or take a little) on another forum (might've been this one) but that one had an extra line of code:%SYSTEMROOT%\REGEDIT.EXE /S activate.regthe thing i can't undestand is what this does (exactly) i mean i know what the commands do;but not regarding the registry.This command imports a file named "activate.reg" silently into your Registry.Dear arie,I knew that was what it would normally do but i never reliased that (synax) would work.So thanks for your reply,Ps. i was wondering wether you knew what reg file that would be. (or which part of the registry needs editing etc)
Arie Posted December 21, 2007 Posted December 21, 2007 Ps. i was wondering wether you knew what reg file that would be. (or which part of the registry needs editing etc)Nope, I use a corporate edition.
diesel_98a Posted December 21, 2007 Posted December 21, 2007 i haven't heard or read the registry import actually working but then i am not even sure what gets imported to the registry to help with the activation.
madbull Posted December 21, 2007 Author Posted December 21, 2007 i haven't heard or read the registry import actually working but then i am not even sure what gets imported to the registry to help with the activation.kk thanks for your reply,PS.It isn't really any worry as i do not use that perticular line of code anyway (as i dont import anything to the registry) i was just curious as to what it might be.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now