Share via

.bat file not working in Windows 7

Anonymous
2013-01-31T15:58:02+00:00

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?

Windows for home | Previous Windows versions | Files, folders, and storage

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.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2013-01-31T23:19:09+00:00

    Do you want to share the contents of the .bat file, and maybe someone can tell you how to fix it?


     SC Tom

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2013-01-31T16:28:41+00:00

    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

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2013-01-31T16:10:26+00:00

    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

    Was this answer helpful?

    0 comments No comments