none
Batch File Commands RRS feed

  • Question

  •  

    Hi. I'm trying to get a batch file that runs on my computer every time it starts up. What is the command line to doing this?

    The batch file looks like this -

    start
    start
    start
    anyname.bat

    (Its saved name is anyname.bat) I want this to run on startup.

    How do I do this?

    Monday, April 7, 2008 4:21 AM

Answers

  •  

    Hi Kevin,

     

    Thanks for posting here!

     

    After checking the issue, it seems this is a general Windows XP/Windows Vista issue. As this forum focuses on SteadyState specific issues, this inquiry would best be posted to Windows  newsgroup:

     

    http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.windowsxp.general

     

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the newsgroups regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.

     

    Also, for your information, I'd like to include the following articles regarding the issue:

     

    How to Assign a Logon Script to a Profile for a Local User

    http://support.microsoft.com/kb/315245

     

    Note 1: You can put the script to C:\Windows, the script path will be: %windir%\ScriptFileName

    Note 2: To  stop a service, we can create a BAT file with the content: Net stop “Service Name”

     

    Another simple method is putting the script to the following folder:

    C:\Documents and Settings\<user name>\Start Menu\Programs\Startup

     

    Best regards,

    Tuesday, April 8, 2008 9:15 AM
    Moderator

All replies

  • How do I do it?

     

    Monday, April 7, 2008 4:23 AM
  • Someone help me?

     

    Monday, April 7, 2008 4:27 AM
  •  

    Hi Kevin,

     

    Thanks for posting here!

     

    After checking the issue, it seems this is a general Windows XP/Windows Vista issue. As this forum focuses on SteadyState specific issues, this inquiry would best be posted to Windows  newsgroup:

     

    http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.windowsxp.general

     

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the newsgroups regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.

     

    Also, for your information, I'd like to include the following articles regarding the issue:

     

    How to Assign a Logon Script to a Profile for a Local User

    http://support.microsoft.com/kb/315245

     

    Note 1: You can put the script to C:\Windows, the script path will be: %windir%\ScriptFileName

    Note 2: To  stop a service, we can create a BAT file with the content: Net stop “Service Name”

     

    Another simple method is putting the script to the following folder:

    C:\Documents and Settings\<user name>\Start Menu\Programs\Startup

     

    Best regards,

    Tuesday, April 8, 2008 9:15 AM
    Moderator