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.

In WinXP SP3, I have a .BAT file on a mapped drive. When I try to run this .BAT file (or even right click->edit) it gives me:

---------------------------
Windows cannot access the specified device, path, or file.  You may not have the appropriate permissions to access the item.
---------------------------
OK   
---------------------------

This happens with any .BAT file, no matter what is within the file. If the file is on my local computer (like C:) it will run just fine. If someone else runs it from another computer (on the same mapped drive), it runs just fine.

I have full permissions on the drive; I can edit/delete/save/write/create in that folder and/or .BAT file and I've ruled out permissions being the issue.

It seems like a security prevention, but I can't tell what it would be. It would have to be something on my PC, but I don't use any 3rd party software.

What would cause this error?

share|improve this question
    
What is your antivirus? –  francisswest Sep 27 '12 at 15:45
    
@francisswest I just double checked, I don't have one. The only thing I have is "Intel Management and Security Status" –  JBurace Sep 27 '12 at 15:47
    
Are you an admin on the machine as a whole? Have you tried to run said batch file as an admin? (Right click, run as... or hold shift, right click, run as....been a while since I was on XP...) –  francisswest Sep 27 '12 at 15:48
    
@francisswest I am admin, yes. I tried Shift Right Click, but "Run As" does not show up in the menu. –  JBurace Sep 27 '12 at 15:50
2  
So if you create a new text file on the drive, and then right->click "edit", it will open. If you rename that same file to .bat it will not open? What happens if you right click the bat file and choose "open with..." and then pick notepad as the editor? –  horatio Sep 27 '12 at 16:39

1 Answer 1

Based on the image you posted, the batch file itself is generating the error, not the operating system. This tells me that something inside of the batch file is trying to access an area that either does not exist, or that you do not have access to. The other things I am thinking of are that you may have scripts disabled on your computer, or you do not have "execute" access to that file itself.

share|improve this answer
1  
Googling the error message he gave, shows it is an OS error. You write " the batch file itself is generating the error, not the operating system. " <-- So you think that error is written within the batch file, well.. that's a huge presumption you make without checking by asking. And Googling the error gives this link from MS support.microsoft.com/kb/2669244/en-gb –  barlop Nov 20 at 22:27
    
I agree with @barlop here. This looks likes a permissions problem. –  DragonLord Nov 20 at 22:30

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.