1.

Solve : .bat to run at startup I STILL NEED HELP 9/16/07?

Answer»

Ok iv looked through pages 1-172 so if this has already been covered i apologize

I need to figure out if there is a way to GET a .bat file to run at startup with out editing the autoexec.bat or sysconfig.exe files in other words is there a way to put a COMMAND line in my script to do so. If not what is the closest thing i could do?Im running windows XP home

Thankyou you can either , put in in startup folder, or put it in a scheduled task to run after computer starts up using
Code: [Select]schtasks /create /?
Quote from: ghostdog74 on September 15, 2007, 07:20:58 PM

you can either , put in in startup folder, or put it in a scheduled task to run after computer starts up using
Code: [Select]schtasks /create /?
that helps greatly but is that all the code i need?Quote from: PHREKER on September 15, 2007, 07:28:00 PM
Quote from: ghostdog74 on September 15, 2007, 07:20:58 PM
you can either , put in in startup folder, or put it in a scheduled task to run after computer starts up using
Code: [Select]schtasks /create /?
that helps greatly but is that all the code i need?
No, he means that you should look at schtasks /create /?, and from there you should be able to see all the commands available; these commands will let you do what you are trying to achieve.Quote from: Dark Blade on September 15, 2007, 07:45:45 PM
Quote from: PHREKER on September 15, 2007, 07:28:00 PM
Quote from: ghostdog74 on September 15, 2007, 07:20:58 PM
you can either , put in in startup folder, or put it in a scheduled task to run after computer starts up using
Code: [Select]schtasks /create /?
that helps greatly but is that all the code i need?
No, he means that you should look at schtasks /create /?, and from there you should be able to see all the commands available; these commands will let you do what you are trying to achieve.
ok thank you very much
i tried doing tat but all i get is "not recognized as ......"What do you TYPE in?Quote from: Dark Blade on September 15, 2007, 08:26:39 PM
What do you type in?
iv tried all of the following
schtasks/?
create?
schtasks/create/?
(i feel like a retard)What's your OS?

From this site, I think that only the following platforms include SCHTASKS:
• Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
• Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
• Microsoft Windows Server 2003, Standard Edition (32-bit x86)
• Microsoft Windows Server 2003, Web Edition
• Microsoft Windows XP Professional for Itanium-based systems
• Microsoft Windows Small Business Server 2003 Standard Edition
• Microsoft Windows Small Business Server 2003 Premium Edition
Quote from: Dark Blade on September 15, 2007, 08:45:11 PM
What's your OS?
windows XP homeWell, it's a possibility that you don't have schtasks on your computer, so you can DOWNLOAD it from here. From there, just place it in system32, and then try the commands again.schtasks is not in XP home. sorry about that.Quote from: Dark Blade on September 15, 2007, 08:50:41 PM
Well, it's a possibility that you don't have schtasks on your computer, so you can download it from here. From there, just place it in system32, and then try the commands again.
ok i got it but how do i make it so that the bat file runs on start up
(whats the code) should i use the run cmd lineanother way to run script at startup is "Registry Entry"
------------------------------------------------------------------------
create new "REG_SZ" value in :
HKLM\software\Microsoft\Windows\CurrentVersion\Run

name : anything
data : path to your batchfile (ie c:\startup.bat)
------------------------------------------------------------------------
or from command line to add registry value :
REG ADD "HKLM\software\Microsoft\Windows\CurrentVersion\Run" /v Anything /t REG_SZ /d "c:\startup.bat"

Quote from: Fen_Li on September 17, 2007, 03:16:27 PM
another way to run script at startup is "Registry Entry"
------------------------------------------------------------------------
create new "REG_SZ" value in :
HKLM\software\Microsoft\Windows\CurrentVersion\Run

name : anything
data : path to your batchfile (ie c:\startup.bat)
------------------------------------------------------------------------
or from command line to add registry value :
REG ADD "HKLM\software\Microsoft\Windows\CurrentVersion\Run" /v Anything /t REG_SZ /d "c:\startup.bat"


REG ADD "HKLM\software\Microsoft\Windows\CurrentVersion\Run" /v Proxy /t REG_SZ /d "c:\Proxy.bat" ... is exactly what i typed in my DOS box. It says "ERROR: Invalid key name" but this seems to work just need to fix the script....


Discussion

No Comment Found