I'm making a batch to install a program I made but I'm having an hard time to create a shortcut. I want to autostart the program at boot and this mean to create a shortcut into the startup folder. The batch I need to autostart is:
Code: Select all
del *log.txt
wscript.exe "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Subnet\invisible.vbs" "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Subnet\start.bat"
wscript.exe "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Subnet\invisible.vbs" "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Subnet\networkmonitor.bat"
wscript.exe "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Subnet\invisible.vbs" "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Subnet\fpsmonitor.bat"
If I go into the batch folder, right click on the file, select make a shortcut and copy and paste in the startup folder it works as intended.
The problem is that I have to create a link, copy it from the directory and paste it into the autostart folder.
I want to make it fully automatic, that means to auto create the shortcut during the installation process.
I tried with this one (https://superuser.com/questions/455364/ ... tch-script ) but every shortcut I create simply doesn't work. The 3 programs are not started by the batch created shortcut.
What can I do?
Maybe I should create a batch file (into the startup folder) that start the batch in the target folder?
Any suggestions is much appreciated