Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Batch Auto Run Question?

How would I get a batch file to run automatically on system startup? Also, if possible, I would like to get it to run without showing the run window.

Update:

I am trying to get this code to autorun on system startup

:BEGIN

mkdir x:\%random%

GOTO BEGIN

I want it to run on system startup on any computer as long as the code is located in a drive on that computer. Basically, if the code is anywhere on that computer, I want it to run as soon as the user logs in

Update 2:

This is for my senior prank. I want to fill people's home drives at school with folders whenever they login. Right now, with the autorun, anytime they try to access their drive, it runs. This is too mean since it locks their drives unless they know to delete the autorun from notepad. I just want it to run silently when they login until they logout

2 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    If you're running XP or Vista and you just want it on a single computer you can simply add the file to the startup folder located C:\Documents and Settings\{NAME}\Start Menu\Programs\Startup

    Files in that folder automatically start upon bootup. And I don't believe you can hide this window.

    If you're wanting it for multiple computers that are in a network and your domain controller is using Windows Server w/ Active Directory, you can simply add logon scripts from within active directory.

  • 1 decade ago

    I'm not sure why you would want to create a bunch of directories non stop on someone's computer... does not look like something very nice to be done..

Still have questions? Get your answers by asking now.