• Announcements

    • xper

      MSFN Sponsorship and AdBlockers!   07/10/2016

      Dear members, MSFN is made available via subscriptions, donations and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, become a site sponsor and ads will be disabled automatically and by subscribing you get other sponsor benefits.
Sign in to follow this  
Followers 0
goatfuzz

Need help formatting a cmd in Runonce

6 posts in this topic

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 by goatfuzz
0

Share this post


Link to post
Share on other sites

Hi there,

the command is correct, so what's the problem?

Getting it in the "RunOnceEx.cmd"?

0

Share this post


Link to post
Share on other sites

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!

0

Share this post


Link to post
Share on other sites

Why delete it when you can just disable it?

RUNONCEEX
<snippet>
.CMD

REG ADD %KEY%\695 /VE /D "Disabling ASP.NET User Account" /f
REG ADD %KEY%\695 /V 1 /D "net user aspnet /active:no" /f

Where you've obviously already defined %KEY% and not already used '695'.

0

Share this post


Link to post
Share on other sites

Why delete it when you can just disable it?

RUNONCEEX
<snippet>
.CMD

REG ADD %KEY%\695 /VE /D "Disabling ASP.NET User Account" /f
REG ADD %KEY%\695 /V 1 /D "net user aspnet /active:no" /f

Where you've obviously already defined %KEY% and not already used '695'.

As Yzöwl said, this should work fine for you.

Edited by HØLLØW
0

Share this post


Link to post
Share on other sites

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 !!!

0

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.