I want to write a program that starts at start up, and then can't be closed. It's a user log program that tracks when the user is at the keyboard and if they close the program, it won't be able to track whether they are on or not. It's a shared computer so it can have multiple users logged into a single windows user session. Is there a way to make a program persistent with the only way to close it is to go into Task Manager? I realize that with Task Manager you can close anything, there's no way around that. I customized the flags so that the CloseButtonHint is not enabled, but the user can still right click the icon on the task-bar and close it that way.
Unclosable Computer Program Step 1: Access Your Friend's Computer. To begin, you will need acess to your friend's computer. Step 2: Begining the Prank. Now that you are at the computer, you can begin the prank. Step 3: Getting the Unclosable Window. You now need to open the window that you want.
Below are steps on how to make a batch file on any computer running a Microsoft operating system (e.g., MS-DOS or any version of Windows).
Creating a batch file in Microsoft Windows
In Windows, you can create a batch file using the steps below or the steps mentioned in the MS-DOS command line section. If you are more comfortable with Microsoft Windows, you can use any text editor (such as Notepad or WordPad) to create your batch files. As long as the file extension ends with .bat. In the example below, we use the Windows Notepad to create a batch file.
- Click Start.
- Type Notepad in the Run box and press Enter.
- Once Notepad is open, type the following lines or copy and paste them.
- Click File and then Save, and then navigate to where you want to save the file. For the file name, type test.bat and if your version of Windows has a Save as type option, choose All files, otherwise it saves as a text file. Once you have completed these steps, click the Save button and exit notepad.
- To run the batch file, double-click it like any other program. Once the batch file has completed running, it closes automatically.
See our what commands are available in a batch file page for commands that can be added to a batch file.
Creating a batch file in MS-DOS
To create a batch file in MS-DOS or the Windows command line, follow the steps below.
NoteNew versions of Windows or computers running a 64-bit version of Windows no longer support the edit command, which means these steps no longer work. Use the above steps if you are running the latest version of Windows.
![How How](https://1.bp.blogspot.com/-BrawMFSrTbw/V8uvh87wPwI/AAAAAAAABeA/bJMtafu4IVEqtQfcSF_OXW6ljEqdG5ZCQCLcB/s1600/Screenshot%2Bfrom%2B2016-09-04%2B17%253A29%253A22.png)
- Open an MS-DOS command window or load MS-DOS.
- In the MS-DOS prompt, type: edit test.bat and press Enter.
- If typed correctly, you should now see a blue edit screen. In the edit screen, type:
- Once these three lines are entered, click File and choose exit; when prompted to save, click Yes. Users who do not have a mouse can accomplish this same task by pressing Alt+F to access the file menu, and then X to exit. Press Enter to save changes.
- Once you are back at the MS-DOS prompt, type: test and press Enter to execute the test.bat file. Because the first line is a pause, you will first be prompted to press a key. Upon doing so, the batch file runs line-by-line; in this case, listing the files in the Windows and Windowssystem directories.
If you want to add more lines to this batch file, type edit test.bat to open the file for editing.
Additional information about the MS-DOS edit command is on our edit command page. Some versions of MS-DOS and bootable diskettes may not have the edit command. If this the case, you would either need to obtain the edit.com file or use the copy con command.
TipSee our what commands are available in a batch file page for commands that can be added to a batch file.