Do you want to share the contents of the .bat file, and maybe someone can tell you how to fix it?
SC Tom
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a batch file that runs properly in Windows XP, but since errorlevel is set differently in windows 7, it does not work. How do I fix the batch file to work in Windows 7?
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Do you want to share the contents of the .bat file, and maybe someone can tell you how to fix it?
SC Tom
If you right-click on it and pick "Run as Admin", does it still error out on you? Is there a commend within it that's not a Win7-recognizable command?
SC Tom
It won't run at all when I pick "Run as Admin" The problem is the code uses errorlevel to determine what to do next, and that field is set differently in Windows 7, so it doesn't work any more.
Thanks
If you right-click on it and pick "Run as Admin", does it still error out on you? Is there a commend within it that's not a Win7-recognizable command?
SC Tom