Results 1 to 5 of 5

Thread: How to run batch file each time computer boots

  1. #1
    Join Date
    Dec 2009
    Posts
    71

    How to run batch file each time computer boots

    My Lg Desktop is installed with windows XP and i want to run a batch file each time i boot the system. Since i have configured the batch file in such a way that the it deletes and copied certain file every time the system is rebooted or restarted and this in turn enhances my systems performance. Any help would be appreciated.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: How to run batch file each time computer boots

    First of create a shortcut of the batch file. Then open the start menu select programs and right click start up folder and open it. After opening this move the shortcut to the startup folder since any short cut present in the start up folder will start automatically when a system is restarted or boots.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How to run batch file each time computer boots

    You can automatically install software and run commands, programs, scripts, and batch files after Mini-Setup runs and the computer restarts by using the [GuiRunOnce] section in Sysprep.inf. All of the tasks listed in the [GuiRunOnce] section of a Sysprep.inf file. Store the file here to run it on every boot.

  4. #4
    Join Date
    Dec 2009
    Posts
    170

    Re: How to run batch file each time computer boots

    One of my system is installed with windows 95 since i am running some application which can run only in the windows 95. Also i need to run a batvh file which should run each tie with windows but i am unable to go by the above method can you implement a different method by which i can achieve the same objective in windows 95.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: How to run batch file each time computer boots

    I think you need to insert a command in your autoexec.bat batch file that calls the batch files at startup so insert the following line

    CALL C:\myfile.bat

    The above command will call the batch file and execute it each and every time you reboot the system.
    Last edited by Reegan; 27-03-2010 at 06:12 PM.

Similar Threads

  1. How to run batch file at specific time
    By Campbel in forum Software Development
    Replies: 4
    Last Post: 27-03-2010, 07:32 PM
  2. Creating a batch file to launch programs based on time
    By rblanda in forum Tips & Tweaks
    Replies: 3
    Last Post: 31-12-2009, 10:19 PM
  3. batch file to open 2 progs with time delay
    By kyosang in forum Windows XP Support
    Replies: 4
    Last Post: 19-12-2009, 09:36 AM
  4. Date and Time format in a BATCH File
    By RogerFielden in forum Software Development
    Replies: 3
    Last Post: 20-04-2009, 11:47 AM
  5. Replies: 3
    Last Post: 12-03-2009, 12:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,584,419.92498 seconds with 17 queries