![]() ![]() So there is no manual work require just a batch file has to run. This file will be placed next to my player build and as user will run this batch file a shortcut of my exe will create automatically and added to the startup. Rem target path alread extracted in line 11 Rem Getting the startup path of the current userĮcho sLinkFile = "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\Player.lnk"Įcho Set oLink = oWS.CreateShortcut^(sLinkFile^) exe which is located in the parent directoy of the batch file(next to batch file)įor %%F in ("%~dp0*.exe") do set "EXEFILE=%%~fF"Įcho Set oWS = WScript.CreateObject^("WScript.Shell"^) Set "SCRIPT=%TEMP%\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs" WIN Reality has an exciting opportunity within our VR Applications Team The WIN Reality VR Engineering team works to develop, extend, and maintain. paste in sLinkFile(variable name of the location) ![]() First search the exe file in the parent directory of this batch file (only one exe should be available next to batch file) Rem This Summary: This batch script will use to add current directories exe file into windows startup folder. I want to give my end user an elegant and efficient way to add my exe to Windows startup and here i have managed to provide him batch file in the directory of my exe. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |