|
-
May 31st, 2000, 10:25 AM
#1
Pleez, Read This!!! Matter Important! "Printing in "DOS mode" using "Shell" -not happening, I wonder
Hi
[I had to repost it since I have not received any replies for my earlier post]
I have a problem.
Following is the code :
Shell("c:\windows\command.com /c type " & App.path & "\matrix.txt >prn")
where App.path is C:\XYZ
when the above line is executed, the contents of "matrix.txt" is not printed on the printer. Instead, control just passes on to the next line.
So, to find out why, I modified the line thus.
Shell("c:\windows\command.com /K")
The above command takes me to the "command prompt". Here, when I give the command "type c:\xyz\matrix.txt >prn", which is what the vbcode does, I get the message "file creation error".
So, I have identified the problem. Can anyone tell me why this "File creation error" occurs, And how to solve the problem?
Thanks for reading through.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|