1

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?

8
  • What is your antivirus?
    – user76211
    Sep 27, 2012 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, 2012 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...)
    – user76211
    Sep 27, 2012 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, 2012 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, 2012 at 16:39

1 Answer 1

0

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.

2
  • 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, 2014 at 22:27
  • I agree with @barlop here. This looks likes a permissions problem.
    – bwDraco
    Nov 20, 2014 at 22:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .