本文介绍了使用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 documentShell.Execute "C:\Test.txt" > prn
but it gives me error "Acccess denied".
i have tried withShell.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
推荐答案
这篇关于使用DOS打印文档时访问被拒绝错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!