Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Batch script with "forfiles" command which is ignored when I execute it. I thought the reason is in the system (I have windows XP) which commonly does not have forfiles.exe installed. I downloaded forfiles.exe from another computer with Windows Server 2003 which has this tool and placed it in c:\Windows\system32 folder. However my script still does not work. Please help to find the reason.

share|improve this question
    
What happens if you execute the command explicitly from the command-line by typing c:\Windows\system32\forefiles.exe? It may require some other libraries (which will also need to be placed in the the folder). It may also be check the version of the OS it's on and refuse to run on XP. –  martineau Aug 6 '12 at 2:33
    
It looks it shows the list of files in this directory. After a while my script started working I don't know why. However when I put some forfiles lines into the set of loops, which was ok for some previous tasks, it crashes now. –  Anna Aug 6 '12 at 4:22
    
Please show your work. –  user3463 Aug 6 '12 at 7:17
    
Does everything in the ForFiles code get ignored or just part of it(can you write an Echo command? ) –  Dave Aug 6 '12 at 11:20
1  
Can you close/delete this question then? –  djangofan Sep 27 '12 at 23:39

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.