May 3, 201016 yr 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, 201016 yr by goatfuzz
May 3, 201016 yr Hi there,the command is correct, so what's the problem?Getting it in the "RunOnceEx.cmd"?
May 3, 201016 yr Author 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!
May 4, 201016 yr 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'.
May 4, 201016 yr 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, 201016 yr by HØLLØW
May 5, 201016 yr Author 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 !!!
Create an account or sign in to comment