How to restart PC and then automatically run a vbs script generated by Matlab before restart?
I have a matlab script that if certain requirment was meet, it will generate a *.vbs script to a folder.
Next matlab will run "system('shutdown /r')" to restart my PC.
However, I want my PC aotomatically run specifically that generated vbs file.
How can I do it?(By windows task scheduler or other possible ways)
Best Answer