Re: how to run a DOS command
From: Ron Weiner (weinNoSpam1_at_mindspring.com)
Date: 07/13/04
- Next message: SME: "Subform Record Selection"
- Previous message: Steve M: "Calculating Next Available Number"
- In reply to: Rover: "how to run a DOS command"
- Next in thread: Van T. Dinh: "how to run a DOS command"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Jul 2004 18:26:30 -0400
Rover
Why not doing it from Access without shelling to DOS by using the filecopy
command. Should work just like redirecting the output of the type command
to the printer. Or at least this worked on my box.
filecopy "c:\test.txt", "lpt1:"
Ron W
"Rover" <rover44614@RemoveThisStuffNetscape.net> wrote in message
news:10f8judgr4q1uaf@corp.supernews.com...
> I'm using A2K in Win XP Pro. On a command button push I want to run a
> DOS command just like from a DOS window. e.g. c:>type test.txt >lpt1
> What I'm really trying to do is print a text file from DOS not windows.
> (Its a driver problem really and this is the only solution I can find).
>
> I can use SHELL to run an application but I can't find how to run a DOS
> command (like TYPE... see above).
>
> TIA
> Jim
>
- Next message: SME: "Subform Record Selection"
- Previous message: Steve M: "Calculating Next Available Number"
- In reply to: Rover: "how to run a DOS command"
- Next in thread: Van T. Dinh: "how to run a DOS command"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|