Re: how to run a DOS command

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ron Weiner (weinNoSpam1_at_mindspring.com)
Date: 07/13/04


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
>



Relevant Pages

  • Re: Why is network reading slow?
    ... I am using the DOS command prompt's copy command. ... why such an incredibly tiny buffer? ... DWORD nTotal = 0; ...
    (microsoft.public.vc.mfc)
  • Re: Ive never seen that message but Im guessing thatyou may be dealing with the
    ... If I can do a job with a single-line command ... By the way, DOS? ... I never said that attrib.exe as a console command was better - ... If I boot to Win98 and open a "console" window it's ...
    (microsoft.public.scripting.vbscript)
  • Re: DOS / XP bat file programming question
    ... How do I feed a "y" response to a DOS command that wants to prompt me ... Note that DOS is an operating system, same as Windows XP. ... There is no DOS under Windows, only a Command Prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: Why is network reading slow?
    ... I am using the DOS command prompt's copy command. ... why such an incredibly tiny buffer? ... DWORD nTotal = 0; ...
    (microsoft.public.vc.mfc)
  • Re: Why is network reading slow?
    ... I am using the DOS command prompt's copy command. ... why such an incredibly tiny buffer? ... DWORD nTotal = 0; ...
    (microsoft.public.vc.mfc)