Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help formatting a cmd in Runonce

Featured Replies

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

Hi there,

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

Getting it in the "RunOnceEx.cmd"?

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

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'.

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

  • 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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.