goatfuzz Posted May 3, 2010 Share Posted May 3, 2010 (edited) Can someone tell me how I reformat the line below for use in RunOnceEx.cmd? I really need to use this but don't understand enough of what I'm doing to reform it for use.I'm beginning to think that I maybe have to use either cleanup.cmd or menureorg.bat to do this. Is there a preferred "correct" way to do an account delete like this?---[ECHO Deleting ASP.NET User Account created by .NET Framework 1.1...net user aspnet /delete]---Hopefully, this will complete my project. I've just been working on this for 6 weeks and really need to finish up.Thanks for any and all help.. Edited May 3, 2010 by goatfuzz Link to comment Share on other sites More sharing options...
HØLLØW Posted May 3, 2010 Share Posted May 3, 2010 Hi there,the command is correct, so what's the problem?Getting it in the "RunOnceEx.cmd"? Link to comment Share on other sites More sharing options...
goatfuzz Posted May 3, 2010 Author Share Posted May 3, 2010 Hi there,the command is correct, so what's the problem?Getting it in the "RunOnceEx.cmd"?Yes, exactly! All the examples of RunOnceEx I've seen don't use echo and such, so I'm unsure of how to put it in the RunOnceEx.cmd. I'm really new to all of this but I understand cleanup.cmd and start.cmd MUCH better than I understand RunOnceEx. SO, do I put it in RunOnceEx the way it is, or do I need to word it a little differently? OR am I better off putting it in my cleanup.cmd file? {I understand how to do that}Thanks! Link to comment Share on other sites More sharing options...
Yzöwl Posted May 4, 2010 Share Posted May 4, 2010 Why delete it when you can just disable it?RUNONCEEX<snippet>.CMDREG ADD %KEY%\695 /VE /D "Disabling ASP.NET User Account" /fREG ADD %KEY%\695 /V 1 /D "net user aspnet /active:no" /fWhere you've obviously already defined %KEY% and not already used '695'. Link to comment Share on other sites More sharing options...
HØLLØW Posted May 4, 2010 Share Posted May 4, 2010 (edited) Why delete it when you can just disable it?RUNONCEEX<snippet>.CMDREG ADD %KEY%\695 /VE /D "Disabling ASP.NET User Account" /fREG ADD %KEY%\695 /V 1 /D "net user aspnet /active:no" /fWhere you've obviously already defined %KEY% and not already used '695'.As Yzöwl said, this should work fine for you. Edited May 4, 2010 by HØLLØW Link to comment Share on other sites More sharing options...
goatfuzz Posted May 5, 2010 Author Share Posted May 5, 2010 Well, actually Yzöwl (and HØLLØW), disabling it never even crossed my mind. That's a great idea! Thanks. and thanks for the string layout. I've been experimenting with different forms and not getting anywhere. I had decided to just use cleanup.cmd and forget it. But I like this idea much better. Thanks Much !!! 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