I have a smb share on a Linux box set up that I can view in explorer:
\\XXX.YYY.ZZZ.QQQ\Share
In this share is a batch file:
\\XXX.YYY.ZZZ.QQQ\Share\Scripts\Script.bat
I can open the file in Notepad from Explorer, using right-click "Edit", and even edit the file.
If I double click on the batch file in explorer, or if I have a shortcut to the file on the desktop, I'm initially prompted with a "Open File - Security Warning", but when I click "Run" I get an error message:
Network Error
Windows cannot access \\\\XXX.YYY.ZZZ.QQQ\Share\Scripts\Script.bat
You do not have permission to access \\\\XXX.YYY.ZZZ.QQQ\Share\Scripts\Script.bat.
Contact your network administrator to request access.
The odd thing is that if I open a cmd
window and simply type "\\\\XXX.YYY.ZZZ.QQQ\Share\Scripts\Script.bat"
the script runs with no problems.