One more note to safely have it working in all situations is to define the path to startup.cmd. For example, let the last line in startup.cmd be like the blue one below: You can use sleep or not according to your needs. This doesn't affect the deletion of startup.cmd itself, as you know. This MUST work in all circumstances, for sure!