So here, ive been trying to solve this for weeks.
I need to put a file into the startup by using a FileAppend command with full path.
But the path needs the username.
Before posting, 'yOu nEeD tO uSe %uSeRnAmE%', it doesn't work, already tried.
My username is listed as Ceyhun Veysel when i do it. But my actual username is Toshiba. So, plz tell me how to list Toshiba instead of Ceyhun Veysel when i use %Username%.
Thx.
heres da code:
Code: Select all
FileAppend, something, File.txt
FileAppend, ; warning: this is in batch langague
(
move File.txt C:\Users\%Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
), mover.cmd
run, mover.cmd
sleep 600
filedelete, mover.cmd
ExitApp