How to Execute a Batch File at Windows Startup
- 1). Click the Windows "Start" button and type "Notepad." Press "Enter." Windows will display "Notepad" in the list of search results at the top of the menu.
- 2). Right-click "Notepad" and select "Properties." The "Notepad Properties" window will open.
- 3). Copy the text in the "Target" textbox and click "OK." This will copy the text to the Windows clipboard. This text contains the name of the command that runs Notepad. The text will usually look like this:
%SystemRoot%\system32\notepad.exe - 1). Click the Windows "Start" button and select "All Programs." Windows will display a list of programs and folders.
- 2). Right-click "Startup" and select "Explore." The Startup folder will open in Windows Explorer.
- 3). Right-click a blank area in the folder and select "New" and then "Text File" from the drop-down list. Windows will place a new text file in the folder.
- 4). Double-click the file and Notepad will open and display the empty file.
- 5). Right-click a blank area in the file and select "Paste." Notepad will paste the text that you copied into the document.
- 6). Press "CTRL+S" to open the "Save" window. Enter "Test_Batch_Startup.bat" in the "File Name" text box and click "Save." Notepad will save the file as a batch file in the Startup folder.
- 7). Restart Windows. After it reboots, Notepad will open.
Get Program Name
Update Startup Folder
Source...