madbull Posted December 21, 2007 Share 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). Link to comment Share on other sites More sharing options...
diesel_98a Posted December 21, 2007 Share Posted December 21, 2007 how about:RD /S /Q Link to comment Share on other sites More sharing options...
madbull Posted December 21, 2007 Author Share 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, Link to comment Share on other sites More sharing options...
diesel_98a Posted December 21, 2007 Share 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......... Link to comment Share on other sites More sharing options...
madbull Posted December 21, 2007 Author Share 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, Link to comment Share on other sites More sharing options...
Arie Posted December 21, 2007 Share 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. Link to comment Share on other sites More sharing options...
madbull Posted December 21, 2007 Author Share 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) Link to comment Share on other sites More sharing options...
Arie Posted December 21, 2007 Share 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. Link to comment Share on other sites More sharing options...
diesel_98a Posted December 21, 2007 Share 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. Link to comment Share on other sites More sharing options...
madbull Posted December 21, 2007 Author Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now