I cannot seem to find the startup folder any where, I want to start a bat file ( with admin privs) at startup but there seems to be no startup folder
Just like Windows 8 Also we have another one: Code: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
Hmm I looked in those places ( the first thing I did lol) and found nothing, then I thought that hide files folders was turned on but it isn't
Adding via registry should work Code: REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v batchfilename /t REG_SZ /d "path\to\batch.bat" /f >nul 2>&1 or as task: Code: SCHTASKS /Create /TN "TASKNAME" /TR "path\to\batch.bat" /SC ONLOGON /RU SYSTEM /RL Highest /F
I will re check again once it boots up but I am very sure It isn't there. with that load the bat file with admin privs? ALso any one know when they are going to release win 10?
See edit in previous post. The task definitely should start with highest privileges, not sure regarding the reg entry.
I tried it in admin cmd but I am receiving a ERROR: Invalid argument/option - 'C:\Users\Ravenfire\Desktop\tpc-0.44-rc2\bin\Windows-amd64\3p4.bat'. Type "SCHTASKS /CREATE /?" for usage. message
Show the line you tried to enter . And better copy file to any other folder instead Desktop one. i normally use either %programfiles%\ or %windir%\.
C:\WINDOWS\system32>SCHTASKS /CREATE /TN "3p4"/TR "C:\Users\Ravenfire\Desktop\tpc-0.44-rc2\bin\Windows-amd64\3p4.bat"/SC ONLOGON /RU SYSTEM /RL Highest /F
Try with that one, the code is sensitive to erros and missing spaces: Code: SCHTASKS /CREATE /TN "3p4" /TR "C:\Users\Ravenfire\Desktop\tpc-0.44-rc2\bin\Windows-amd64\3p4.bat" /SC ONLOGON /RU SYSTEM /RL Highest /F
You can try to run in user context with. Delete old task first! Code: SCHTASKS /CREATE /TN "3p4" /TR "C:\Users\Ravenfire\Desktop\tpc-0.44-rc2\bin\Windows-amd64\3p4.bat" /SC ONLOGON /RU "" /RL Highest /F
Guys might I advise you make use of the environmental variables. Code: %programdata%\Microsoft\Windows\Start Menu\Programs\StartUp or Code: %userprofile%\Desktop %appdata% These will work no matter what the user is. I've used them quite a bit in scripting.