Where should I put a batch file which should go when starting?

I have a small batch file that I want to run automatically during system startup.  I knew where put it to XP but 7 me baffled.  I am the user or owner.

Thanks for your help.

Tips from Microsoft http://windows.microsoft.com/en-us/windows/run-program-automatically-windows-starts#1TC=windows-7

or

For the current user:

C:\Users\username\AppData\Roaming\Microsoft\Window s\Start Menu\Programs\Startup

For all users:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

If the above doesn't help, you can create a scheduled task in market 'start up' or a 'connection '? http://www.thewindowsclub.com/how-to-schedule-batch-file-run-automatically-Windows-7 gives the general idea.

Tags: Windows

Similar Questions

  • Writing a batch file which will remove some files?

    I'm writing a batch file which will remove some files based on a list in a text file. Each line lists a different file and a single line of the content of the files, as below:

    m:\trumpf3\ncdone\rueck090.txt:da,'1599','159934','159903400',1,1,1934
    m:\trumpf3\ncdone\rueck091.txt:da,'1599','159935','159903500',1,1,3518
    m:\trumpf3\ncdone\rueck092.txt:da,'CP_TAPESHOT',1
    m:\trumpf3\ncdone\rueck093.txt:da,'CP_TAPESHOT',1

    m:\trumpf4\ncdone\rueck440.txt:da,'*','480','0017341',1,1,2288, "
    m:\trumpf4\ncdone\rueck441.txt:da,'*','500','0017343',1,1,3705, "
    m:\trumpf4\ncdone\rueck442.txt:da,'*','510','0017344',1,1,3628, "
    m:\trumpf5\ncdone\rueck494.txt:da,'2179','217901','217900100',1,1,1500, "
    m:\trumpf5\ncdone\rueck495.txt:da,'2179','217902','217900200',1,1,707, "
    m:\trumpf5\ncdone\rueck496.txt:da,'2178','217801','217800100',1,1,1042, "
    m:\trumpf5\ncdone\rueck497.txt:da,'2178','217802','217800200',1,1,1383, "

    The first and the second file are two good files, however the third and fourth, I didn't need. At this point, I'll have to go through the list of files and manually delete each one that does not match the format of 1 & 2. They are in different folders, but I think that the path at the beginning should be able to make the batch to delete this file. I can just find a way so that it can go through the list in the text file. Any help would be greatly appreciated because that would be a huge timesaver.

    Well, I think even more easy.  Paste the whole lot into Excel to make it easier to handle. You can filter the lines manually, or write a formula next to him who decides whether the line should be understood, something like this:

    I don't know what criteria would you use, so I used 'if the number after that the parenthesis after the first comma is a number, keep the line."  The text surrounded by a circle is the text that I check to see if it is a number:

  • How to plan a batch file (* .bat) to run when I'm not present?

    Task Scheduler menu does not show me anything about it.

    I have a batch file that saves my directories and important files on an external drive. It has been debugged and works if I run everything in present.

    What I would do now, is that it is every night when I'm not at the computer, say at 23:00.

    How he handles a situation where it need an answer? for example, XCOPY sometimes ask you if you want to replace the files.
    Bill

    To program on Windows XP, you would use Panel initially scheduled tasks | All programs | Accessories | System Tools.

  • I need help doing things with batch files

    This applies to All THE VERSIONS OF WINDOWS and probably relates more to MSDOS than any other.

    cmd.exe or notepad.exe and comand.com applications

    I'm doing some kind of Setup.

    I have a tool nice lottle I did that works with a batch file. and he has 3-4 text file sthat go with it. I wanted to make a batch file which would act as an installer. make the MainMenu.txt, ReadMe.txt, Credits.txt, DISCLAIMER.txt fill them with the correct values, then make the .bat file that acts as the user interface. and when this launch the batch file under its weight made it has created (and not as a child of cmd window) then delete itself so all that remained was the new files...

    I tried the command IF [NOT] EXIST filename command because it's the only IF the syntax I have any slight understanding of

    EXAMPLE OF

    mkdir EXAMPLE

    EXAMPLE of CD

    IF [NOT] EXIST MainMenu.txt GOTO CMAIN

    : CMAIN

    ECHO the text I want to be in the lead > MainMenu.txt

    pause

    EXAMPLE OF

    but when I run the command 'Betainstall.bat' file, it opens and then closes immediately. What would be nice if it was the CASE of WAT I TOLD it to. it doesent need to be opened, because it only creates a directory then makes em fills with files on and its done... but it doesent do anything. and since it closes too quickly it's a bit hard to read all the messages that appears. (im not fast enough for print scrn) and addition of the pause at the end did not a thing. and / k has ever helped me before

    so someone who knows nothing about MS-DOS or command prompt this is a great opportunity to showcase the prowess of youre

    I just need to find how to get cmd to delete the last entry of Y.

    If I could get the Y equal to NULL it should write the %M % and not okay right?

    For the first part of what I mentioned above, you can simply do:

    SET M =

    The M variable will then to null.

    However, for what is in quotes: No. get M set to null will do what you want.  Use the command I mentioned in my previous post.  Note the signs double% to get the result of %M % in the command of the user file.

    IF the echo % M %! == 1 ! Goto: whatever > USER - X 2. 0.Bat

    Then the USER - X 2. 0.Bat will contain the line:

    IF M %! == 1 ! Goto: whatever

    Now, from your original:

    SET /p M = type OK or CANCEL, and then press ENTER:
    IF %M % IS INSTALL OK GOTO
    IF %M % IS CANCEL LEAVE
    : INSTALL

    You can see that if the M variable contains not exactly the capitals OK or CANCEL capitalized (that you specified), then the second half of each IF statement will not be executed. Your sample of what is getting written to the file USER - X 2. 0.Bat, you typed tiny ok and it works again the part of the installation of your batch file because he simply fell thru to the: part of the INSTALLATION.

    What you want is a batch program that allows to anticipate all possible ways that the user could answer "correctly". When you check if the variable M is equal to OK, it checks that specifically. All other cases the letters will not be the exact match.  That's why I ran three different lines looking for okay, okay, then OK.

    The fall same thru happen here:

    SET /p M = press on, then ENTER:
    IF %M % == y GOTO RUN
    : RUN

    Because the only thing you're looking for is there it will be Goto: EXECUTION of the IF statement , if (and only if) M is exactly there, but if it is equal to anything else it will fall through to the next line which is your: block RUN. As you have, any response is typical for the "SET/p M = press on, then ENTER", it's going to fall through and get to the: RUN block. The only exception is that if the user presses the enter only key, it will then generate the error message that I mentioned and end the batch file. That's why I used the! at the end of the two %M % and on the end of what we test, such as OK! This test if the user pressed the key entry in itself without the batch file, which gives an error.

    So, instead of this:

    IF the ECHO %M % == 1 GOTO RUN > USER - X 2. 0.bat
    IF the ECHO %M % == 2 GOTO README > USER - X 2. 0.bat
    IF the ECHO %M % == 3 CREDITS GOTO > USER - X 2. 0.bat
    IF the ECHO %M % == 4 GOTO WARNING > USER - X 2. 0.bat
    IF the ECHO %M % == 5 GOTO EOF > USER - X 2. 0.bat

    Use this:

    IF THE ECHO % M %! == 1 ! GOTO RUN > USER - X 2. 0.bat
    IF THE ECHO % M %! == 2 ! GOTO README > USER - X 2. 0.bat
    IF THE ECHO % M %! == 3 ! GOTO CREDITS > USER - X 2. 0.bat
    IF THE ECHO % M %! == 4 ! Disclaimer GOTO > USER - X 2. 0.bat
    IF THE ECHO % M %! == 5 ! GOTO EOF > USER - X 2. 0.bat

    Or use which does the same thing, but look more pretty:

    IF the echo % M %! == 1 ! Goto: run > user - X 2. 0.Bat
    IF the echo % M %! == 2 ! Goto: ReadMe > user - X 2. 0.Bat
    IF the echo % M %! == 3 ! Goto: credits > user - X 2. 0.Bat
    IF the echo % M %! == 4 ! Goto: warning > user - X 2. 0.Bat
    IF the echo % M %! == 5 ! Goto: EOF > user - X 2. 0.Bat

    (Upper and lower case for the block names all answer the same, whereas they are not nit-picky as the tests within the statement itself. I put the: before the labels of block in the IF statement so I know it's a label. I left the uppercase EOF because it is an acronym for end of file. And I use IF instead of If since it's a small order and I like it to stand. This bit is just my personal preference.)

    Another thing, you can make is for your first redirection in User - X 2. 0.Bat is to use the single > crush entire previous existence of this file. Then for forwarding the following him, continue the > who is the operator 'Add file '.

    Better yet would be first to check if the file of the user - X 2. Bat is and give the user the possibility to replace, rename, or to have an abortion.

    Clear as mud now? :)

    Edit: I just looked and I see that you are already doing the single > for the first time. Pass over my hikes on this part. Laughing out loud

  • How can I give permissions only to a running batch file?

    I have a batch file, I created and dropped on the user workstation on our network.  I need him to run it but don't want to hiim to read or see his text if it just right-click on it and choose 'change '.  I tried just giving him access under advanced performance options and it did not work.  With "read and execute" it can always display the contents of the batch file (which includes the admin password).  Is it possible to have him not being able to see the contents of the batch file, but still be able to run it?  The workstation is XP SP3

    batch file is a text file, so any user can view. If you want to hide the data, you must create an application and run by the Scheduler.

  • To open Internet Explorer as a background process in the batch file

    I need to write the batch file, which will open Internet explore it as a background service/mode (which you don't mind the user).

    Thanks in advance

    Paritosh

    Hi Paritosh,

    The question you have posted is better suited to the MSDN forums. You can ask your question in the help link.

    http://social.msdn.Microsoft.com/forums/en-us/categories

    Hope the helps of information.

  • How can batch files - I copy files from subfolders

    II have a directory with several folders that contain pictures, documents, etc... I need a batch file which will look through all these aand only copy files .doc to a specific folder. Now there are hundreds of these files that need to be addressed through, so I really don't want og manually, would be nice if someone could help me here

    Duplicate file names... If you assume that there is not

    -> These assumptions are generally bad.

    is it easy to code?

    -> Easy to code but hard to understand, unless you're an expert. Notice that the script fails when it encounters some "poison characters" such as brackets or double quotes. If you have one of these in your file names or folder, then a different approach is required.

    off @echo
    Set SourceFolder = C:\Users\JohnDoe
    Define TargetFolder = D:\MyDocs
    for /F "delims =" % in ('dir /s /b /ad "% SourceFolder%\*.*" ') do)
    If there are some "%%a\*.doc" xcopy.exe/y "%%a\*.doc*" "% TargetFolder%\". »
    )

  • Batch file to call job Disqualification

    Hi friends,

    Please help me in creating a batch file, which called OEDQ work.

    This batch file is called by Informatica once it loads data into the staging area for the cleaning of the data.

    Your help is very appreciated.

    Thank you, Prasad

    Prasad,

    As I mentioned if you please, don't download files jmxtools.jar - you must use of the facility. You don't need to move it, just run from the folder it is in.

    On a Windows Quick Start installation it will be in Program Files, for example

    C:\Program Files\EDQ11\Enterprise data Quality\director\11.1.1.7.3. (1050) \jmxtools.jar

    On a weblogic Unix installation it is probably in your House Disqualification [a subfolder of your home FMW], for example

    /opt/WLS/EDQ/Oracle.EDQ/jmxtools.jar

    If she's not here, then use the find Unix command to locate.

    Nick

  • System error 50 occurred... during the mapping of network drive with a batch file.

    I have several computers on a home network with WiFi and Ethernet access to a NAS network.

    Using a batch file, card readers network at startup, etc.
    A for (I have 4) computers fails to map the network drive.  All other computers work fine with the same batch file.
    Specifically, when the following command has been executed in the batch file:
    NET use * /d /y
    The computer responded with:
    50 system error has occurred.
    The request is not supported.
    When the batch continues running and map network drives, each command mapping «net use z:...» ' produces the following:
    53 system error has occurred.
    The network path was not found.
    This particular computer in question is a laptop and all other software and functionality seems to work very well.
    It looks like a problem with Windows, but after some research, I found that many variations in Windows can produce the same above error codes.
    Help!

    Hi Roger,

    Have you been able to solve the problem?

    System Error Codes are very broad. Each of them can occur in one of hundreds of locations in the system. As a result, the descriptions of these codes cannot be very precise.

    Please visit the following link to learn more about the system error 50:

    System (0 to 499) error codes
    http://msdn.Microsoft.com/en-us/library/ms681382(v=vs.85).aspx

    Please let us know the status of the issue.

  • DirectX June 2010 asking where to put the extracted files. Where should I put them?

    DirectX June 2010 asking where to put the extracted files. Where should I put them?

    Create a new folder and extract the files to the new folder.

    Let us know if that helps.

  • Where should I put my files .8bf in CC

    Hi all

    I'm sorry - I know that it is pretty basic!

    On a 64-bit Windows 7 system where should I put my .8bf files?

    I did a search of my folder of files of programs (not x 86) and it came with a folder that had some files in (C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit) \Required\Plug-Ins\Filters), but when I put filters in this case that they still do not appear in the menu filters in photoshop.

    I know that it is quite possible that the filters I tried are not compatible with the CC (they worked with CS5.5) but I want to know that I tried at least the good folder.

    TIA

    John

    Folder "\Plug-ins Adobe\Adobe Photoshop CC (64-bit)" and 32 bit a go in "Adobe\Adobe Photoshop CC\Plug-ins".

  • I want to use the custom pattern, actions ets... But I can not find custom files to [presets > model] or [presets > actions]... Where should you put these files?

    I want to use the custom pattern, actions ets... But I can not find custom files to [presets > model] or [presets > actions]... Where do I put these files?

    If you're on a PC - C:\Users\ [username] \AppData\Roaming\Adobe\Adobe Photoshop CC 2015\Presets

  • the toolbar at the top of the screen which has lost: file, editing, display, fav, tools and options, where should I go to recover?

    Ive tried to recover in any frame and Panel, but he adds the toolbar to the configuration page, not to the homepage of IM on... also im miss the toolbar with the "BOLD", italic and underscore as well... then where should I go to recover these toolbars? and how can I stop this happen?... I want to use my printer and I can get the opportunity to print or save either... I have work that I do and I am unable to get anything done... im in a big mess... could u pls help me?

    Thank you

    Joanie

    Your topic seems to assume that you are absent from the menu bar in Internet Explorer. Right-click anywhere on the IE toolbar and make sure that the Menu bar.

    You also mention: also miss me the toolbar with the bold, italic and underlined as well. It would be for an e-mail program? The same method may work, but if not, you need to tell us what e-mail you program using.

    Tip: Ctrl + P also started a printing operation.

    Bruce Hagen ~ MS - MVP [Mail]

  • where should I put the "" XML: Space = preserve ".

    Hello

    I use FM12. I want to keep empty lines (and several [shift + return] line breaks between the text of the code).

    If FM12 import my XML file, additional line breaks will be removed.

    In the read/write rules, I placed a statement

    element {'Code'

    drive line break is forced return

    }

    has not worked for me.

    In FM help files, I found the following trick: "place an attribute XML: Space ="preserve"to the item...» »

    My Question: Where should I put this attribute?

    1.) in the DTD file?

    (2.) in the file of ESD?

    (3.) in read/write rules?

    4.) in an additional configuration file?

    Thanks for any help!

    M.

    Hi Mathias...

    I use it...

    element 'codeblock' {}

    newline writer is 99999 characters;

    drive line break is forced to return;

    }

    but I think you can use it as well...

    element 'codeblock' {}

    keep line breaks;

    }

    To include the attribute XML: Space, you would add which both the EDD and the DTD.

    See you soon,.

    .. .Scott

  • where do I put update to directx, what file?

    I am a complete novice when it comes to computers. Where do I put update to directx, what file?

    Hello

     
    1. What is the operating system installed on your computer?  Click on the below link mentioned for assistance on this.
    What version of the operating system Windows am I running?
    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running
     
    2. are you trying to install Direct X on your computer and get you an error code or message?
     
     
    For the installation of Direct X on your computer, visit the link below
    How to download and install DirectX
    http://support.Microsoft.com/kb/179113
     
    You can read the article on the web page which the link mentioned below.
    DirectX: Frequently asked questions
    (This article is also applicable to Windows Vista)

Maybe you are looking for