Jump to content
Sign in to follow this  
AHRIMANSEFID

{REQ} Run exe in startup Windows 8

Recommended Posts

AHRIMANSEFID

Me Need Help For Ruining exe In Windows 8 .

Me Test In All Address But Not Ruining File Plz Help Me.

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "test.exe", "REG_SZ", @WindowsDir & "\test.exe")

[b]C:\Users\[color="#ff0000"](User-Name)[/color]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run[/b]
[b]HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run[/b]

Share this post


Link to post
Share on other sites
dragan

Instead of editing the registry, I would suggest creating a shortcut on this destination:

C:\Users\YOURUSERNAMEGOESHERE\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Share this post


Link to post
Share on other sites
AHRIMANSEFID

Yes add Not Run Autoit.exe.

Share this post


Link to post
Share on other sites
Jos

How would windows understand this? @WindowsDir & "test.exe"

@WindowsDir is AutoIt syntax not Windows!

Try %windir%

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
AHRIMANSEFID

Code Ok Write In Reg Address And Make Shortcut But Not Running Win 8 Test.exe.

Me See In Task Bar ===> Startup ===> text.exe

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "test.exe", "REG_SZ", @WindowsDir & "\test.exe")

[b]C:\Users\[color="#ff0000"](User-Name)[/color]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run[/b]
[b]HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run[/b]

Share this post


Link to post
Share on other sites
OliverA

It's better to use scheduler task instead of the run key

To create it:

schtasks.exe /create /tn “Task Name” /tr "C:\test.exe" /sc onstart

For remove it:

schtasks.exe /delete /tn "Task Name" /f

I'M QUIT FROM THIS FORUM!

It was fun until it lasted, hope on my future way i can't find people that offend without any reason ( i was called lazy and parasitic, and everyone agreed...United we stand, divided we fall ) just for fun because don't have anything to do in the life, without knowing anything about the person who write, noone forced to post, noone forced to help.

From the top of the from their very great superiority they not go down to my level, that people can not spread the knowledge but you have to learn by yourself.

In what way? It's easy...just search on google

For that people, wish you the best way,

Oliver Astone

Share this post


Link to post
Share on other sites
Jos

Code Ok Write In Reg Address And Make Shortcut But Not Running Win 8 Test.exe.

Me See In Task Bar ===> Startup ===> text.exe

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "test.exe", "REG_SZ", @WindowsDir & "\test.exe")

[b]C:\Users\[color="#ff0000"](User-Name)[/color]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run[/b]
[b]HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run[/b]

Understand and should indeed be correct, so how have you determined your script isn't running?

Maybe it simply starts and then stops immediately because of a wrong condition like different workdir.

Jso


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
OliverA

Why?

Because it's more manageable and have more option than a single reg key, it's easy and fast


I'M QUIT FROM THIS FORUM!

It was fun until it lasted, hope on my future way i can't find people that offend without any reason ( i was called lazy and parasitic, and everyone agreed...United we stand, divided we fall ) just for fun because don't have anything to do in the life, without knowing anything about the person who write, noone forced to post, noone forced to help.

From the top of the from their very great superiority they not go down to my level, that people can not spread the knowledge but you have to learn by yourself.

In what way? It's easy...just search on google

For that people, wish you the best way,

Oliver Astone

Share this post


Link to post
Share on other sites
AHRIMANSEFID

plz add help for me in run exe @ startup win 8.

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×