OS-Copy <FileName> PRN

modig

New Member
On Windows 11 - OS-Copy <FileName> PRN is failing with an Access Denied error.
Any work around or suggestion?
Devang
 

Rob Fitzpatrick

ProgressTalk.com Sponsor
In other words, what happens when you try this from the shell with the same user context? If it also results in an access denied error, that would mean it isn't an OE/ABL issue. Do both at the same time (ABL and cmd) so that you know the access issue isn't transient.
 

modig

New Member
Yes, agree this is not OE/ABL issue definitely it is Win11 related issue but surprisingly NO clue or hint on the web abt such weird behavior.
In case someone has some clue on it.
Devang
 

dimitri.p

Member
The workaround is to "copy" the file using the UNC name for the device.
Code:
OS-COPY filename \\machinename\printersharename
(can be the same machine you are printing from or some oher machine on the same network).
PRN, LPT1, COM1 etc "access" has been limited since VISTA came out.

You are welcome :)
 

modig

New Member
The workaround is to "copy" the file using the UNC name for the device.
Code:
OS-COPY filename \\machinename\printersharename
(can be the same machine you are printing from or some oher machine on the same network).
PRN, LPT1, COM1 etc "access" has been limited since VISTA came out.

You are welcome :)

It works as expected!​

thanks
Devang
 
Top