Hello community. Greetings to all.
I wanted to add the possibility for a script to start with the system, however fileCopy does not copy direct access to the system folder% AppData% \ Microsoft \ Windows \ Start Menu \ Programs \ Startup
I suppose it will be some kind of lockdown for security. Is there a way to make a script start with the system from code?
I know I can create a scheduled task to start with the system, but I find it a bit invasive to do it this way. Otherwise, the user will have to do it manually.
Thanks.
copy a file to windows home folder
copy a file to windows home folder
If my tarzan english is not understood, let's blame google translate
Re: copy a file to windows home folder
Are you sure it's a security issue and not a problem with your code? I'm able to copy files to that directory using the script below:
Can you show your script? The way you showed it with spaces before AppData and between all the backslashes wouldn't work. Perhaps you intended to force an expression since you put a space after the first %. If so, then it would be like this:
Code: Select all
FileCopy, PathyToMyShortcut.lnk, %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
Can you show your script? The way you showed it with spaces before AppData and between all the backslashes wouldn't work. Perhaps you intended to force an expression since you put a space after the first %. If so, then it would be like this:
Code: Select all
FileCopy, PathyToMyShortcut.lnk, % AppData "\Microsoft\Windows\Start Menu\Programs\Startup"