Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have recently constructed a batch file on my server to zip up data and send it to a backup source for archiving. However when I run the batch file I get the following error...

'7z.exe' is not recognized as an internal or external command, operable program or batch file.

Any suggestions on why I am getting this message and how I can fix it?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You can set the path to 7z.exe in the front portion of your batch file or call it through its full directory path and executable (two quick and easy options in correcting the situation).

share|improve this answer
    
I found out it is even simpler than that. For some reason my windows 2003 server does not have Windows Server 2003 Resource Kit Tools. Therefore I don't "functionally" have the ability to zip up my files using a batch file. –  GMitch Jun 6 '11 at 23:24
1  
??? 7z.exe does not appear to be part of the Resource Kit based on the following Microsoft link: microsoft.com/downloads/en/…. –  user48838 Jun 7 '11 at 0:15
    
@Cpt. Jack, the resource kit plays absolutely no part in this. As for the "some reason", have you considered that it's because it's not part of the default installation? –  John Gardeniers Jun 7 '11 at 5:57
    
Yes you are correct, it appears as though 7z.exe is not apart of the resource toolkit. I was actually looking at installing that because my server lacks Robocopy, which is within the toolkit. That is what sparked my interest within this download. Sorry for the confusion. –  GMitch Jun 7 '11 at 14:27
    
No problem... It did have the head scratching for a little bit. –  user48838 Jun 7 '11 at 15:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.