使用DOS打印文档时访问被拒绝错误 [英] Access denied error when print document using DOS

查看:91
本文介绍了使用DOS打印文档时访问被拒绝错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

场景:

我支持旧的VB代码. Code是8年前开发的.其中包含以下代码以打印文档

Shell.Execute "C:\Test.txt" > prn

但这给了我错误访问被拒绝".

我已经尝试过

Shell.Execute "C:\Test.txt" > lpt1 and Print "C:\test.txt"

但没有运气.我正在使用管理员帐户.

可能是什么问题呢 ?我该如何解决?

我正在使用WindowsXP sp3

Scenario :

i am supporting old VB code. Code Was developed something 8 years ago. which contain following code to print document

Shell.Execute "C:\Test.txt" > prn

but it gives me error "Acccess denied".

i have tried with

Shell.Execute "C:\Test.txt" > lpt1 and Print "C:\test.txt"

but no luck. I am working with administrator account.

What could be the problem ? how can i solve it ?

i am working on WindowsXP sp3

推荐答案

基于错误消息,必须授予该文件的权限.

Based on the error message, you must give the permission for the file.

The operating system denied access to the specified file[^]


这篇关于使用DOS打印文档时访问被拒绝错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆