Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Need help formatting a cmd in Runonce

- - - - -

  • Please log in to reply
5 replies to this topic

#1
goatfuzz

goatfuzz

    Newbie

  • Member
  • 15 posts
  • OS:XP Pro x86
  • Country: Country Flag
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, 03 May 2010 - 08:40 AM.



How to remove advertisement from MSFN

#2
HØLLØW

HØLLØW

    Member

  • Member
  • PipPip
  • 138 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Hi there,

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

Getting it in the "RunOnceEx.cmd"?
Mit freundlichen Grüßen / Kind regards / Salutations distinguées / Atentamente / Distinti saluti

HØLLØW

#3
goatfuzz

goatfuzz

    Newbie

  • Member
  • 15 posts
  • OS:XP Pro x86
  • Country: Country Flag

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!

#4
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,532 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

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

#5
HØLLØW

HØLLØW

    Member

  • Member
  • PipPip
  • 138 posts
  • OS:Windows 7 x64
  • Country: Country Flag

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, 04 May 2010 - 04:00 PM.

Mit freundlichen Grüßen / Kind regards / Salutations distinguées / Atentamente / Distinti saluti

HØLLØW

#6
goatfuzz

goatfuzz

    Newbie

  • Member
  • 15 posts
  • OS:XP Pro x86
  • Country: Country Flag
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 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN