• MSDOS: Run command on startup
    22 replies, posted
How would I get MSDOS 6.22 to run a command without typing anything in when I start the computer? I have a MSDOS based application that I'd like to run as soon as the computer starts.
You could make a .bat and add it to the startup folder?
Make a registry key in your HKCU (for you) or HKLM (everyone) hives. Also reference that registry key to a batch script, or executable. So say you have a file called: Fuckedup.bat And you want that to automatically start up when you login. open your registry and goto this path: HKLM\Software\Microsoft\Windows\CurrentVersion\Run Add a registry line in there, REG_SZ Put the file path like "C:\fuckedup.bat" OR you can put that through command prompt! example: reg add hklm\software\microsoft\windows\currentversion\run /v Fuckedup! /t REG_SZ /d C:\fuckedup.bat
It's not on a Windows GUI it's pure DOS. (not command, actual DOS. Not Windows)
Try placing a file named AUTOEXEC.BAT in the root directory of your boot drive with the script in it.
[QUOTE=Banshee FrieNd;28095055]It's not on a Windows GUI it's pure DOS. (not command, actual DOS. Not Windows)[/QUOTE] What the fuck? DOS has been gone since XP. So we got an issue there, don't we? Also, is it an executable? I'll make your registry key for you since you seem to inept. Just make sure you give me the file path, otherwise it'll clutter up your registry. And GUIs don't matter. As long as you're instructing that key to do [b]SOMETHING[/b] then you're [b]GOOD[/b]. Hell you can make it run notepad and open a fucking file for you in it.
it's an executable.
[QUOTE=Banshee FrieNd;28095423]it's an executable.[/QUOTE] Oh for fucks sake man! What is the file path?
if the program supports launch arguments (which it probably doesn't) it's gonna be easy. Otherwise you'll need to make a program to launch it and type in a certain command you want
HERE, try this: Got to START go to RUN type in this: reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v MyExecutable /t REG_SZ /d "C:\MYFILEPATHISHERE " Replace what i have as "C:\MYFILEPATHISHERE" DO NOT remove the quotations if there is a space anywhere in that filepath. [QUOTE=Murkrow;28095480]if the program supports launch arguments (which it probably doesn't) it's gonna be easy. Otherwise you'll need to make a program to launch it and type in a certain command you want[/QUOTE] I can beg to differ, especially with registry keys.
[QUOTE=Richard Simmons;28095553]HERE, try this: Got to START go to RUN type in this: reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v MyExecutable /t REG_SZ /d "C:\MYFILEPATHISHERE " Replace what i have as "C:\MYFILEPATHISHERE" DO NOT remove the quotations if there is a space anywhere in that filepath. I can beg to differ, especially with registry keys.[/QUOTE] lT'S NOT WINDOWS, IT'S [b]MS-DOS.[/b] [editline]17th February 2011[/editline] oh wow, what a wasted 999th post.
[QUOTE=VistaPOWA;28095800]lT'S NOT WINDOWS, IT'S [b]MS-DOS.[/b][/QUOTE] Okay, so then we're at a misunderstanding. What operating system are you running this on.
[QUOTE=Richard Simmons;28095831]Okay, so then we're at a misunderstanding. What operating system are you running this on.[/QUOTE] He already said that. MS-DOS 6.22 You know, the OS that were used BEFORE windows and it's fancy pancy GUI came along OP, you're gonna do some tweaking with Autoexec.bat I have once (over 10 years ago) used it to autolaunch applications.
[QUOTE=Van-man;28095866]He already said that. MS-DOS 6.22 You know, the OS that were used BEFORE windows and it's fancy pancy GUI came along[/QUOTE] Yes. I am well aware what DOS is. There was still compatibility for MS-DOS applications in Windows.
Autoexec.bat, op.
Not supposed to sound like a pretentious dick, it just happens. You just don't hear many people trying to play around with DOS6.
[QUOTE=POWA KILLERDeux;28096000]Autoexec.bat, op.[/QUOTE] [QUOTE=kukiric;28095091]Try placing a file named AUTOEXEC.BAT in the root directory of your boot drive with the script in it.[/QUOTE] Thanks, Perfect!
OP, go to C:\, then type "edit autoexec.bat", and add the following line to the file: X:\Programplace\Program.exe -argument Save it and it should work. [editline]17th February 2011[/editline] Rate me clocks.
[QUOTE=Richard Simmons;28096030]Not supposed to sound like a pretentious dick, it just happens. You just don't hear many people trying to play around with DOS6.[/QUOTE] Oh get your head out of your ass already
[QUOTE=Richard Simmons;28096030]Not supposed to sound like a pretentious dick, it just happens. You just don't hear many people trying to play around with DOS6.[/QUOTE] It's right there... In the title... Man I only interacted with MSDOS around 5-6 before XP and even I knew what he was talking about, and that the AUTOEXEC.BAT had to be changed.
[QUOTE=Richard Simmons;28094941]Make a registry key in your HKCU (for you) or HKLM (everyone) hives. Also reference that registry key to a batch script, or executable. So say you have a file called: Fuckedup.bat And you want that to automatically start up when you login. open your registry and goto this path: HKLM\Software\Microsoft\Windows\CurrentVersion\Run Add a registry line in there, REG_SZ Put the file path like "C:\fuckedup.bat" OR you can put that through command prompt! example: reg add hklm\software\microsoft\windows\currentversion\run /v Fuckedup! /t REG_SZ /d C:\fuckedup.bat[/QUOTE] Although you completely missed the point of his post, dragging an item into your "Startup" folder in the Start Menu would accomplish all this
OP, if you want to experiment with something a bit less archaic, you can try FreeDOS. It's something like 99% compatible with DOS. I have it running on a 486/66 and it runs every DOS application I have, and has several fancy tools.
[QUOTE=foszor;28100780]Although you completely missed the point of his post, dragging an item into your "Startup" folder in the Start Menu would accomplish all this[/QUOTE] I never saw the point of third party programs using the Windows Registry. (semi related - refers to programs adding startup entries in the registry) I mean, sure it's cool for Windows settings, but I just don't get why not-Windows even gets read-only access to it.
Sorry, you need to Log In to post a reply to this thread.