Re: Batch command

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

From: Michael Burk [MSFT] (mikeburk_at_online.microsoft.com)
Date: 02/19/04


Date: Thu, 19 Feb 2004 12:25:35 -0800

The simplest way to accomplish this is to take that one command, paste it
into notepad and then in notepad got to Save As. Make sure to change the
file types to All Programs and then type in MapPrinter.bat, or any name you
like, but end it in .bat.

Once this file is created, just drag and drop it into the Starup folder in
your start menu. When dragging and dropping in the menu, you sometimes need
to pause a little to let it open the menu (For instance, pause on All
Programs until it opens). Once there, the batch file will automatically
find the command prompt and run every time you login.

-- 
Michael Burk
Longhorn Shell
http://msdn.microsoft.com/longhorn
----===========================----
This posting is provided "AS IS" with no warranties, and confers no rights.
"Keith" <anonakeith@wil.midco.net> wrote in message 
news:1305801c3f71c$6c177f10$a001280a@phx.gbl...
> We have XP Pro and a dos program that can't be replaced
> yet. The program needs to print to an LPT1 printer over
> the network. I have used the "net use lpt2
> \\pserver\laser1 /persistent:yes" to accomplish the
> printing task. However, it needs to be typed in each time
> we need to print fromn the dos program. Would someone
> please take the time and explain to me how to write a
> batch command that will execute when the computer boots
> up to help expedite this process.
> I have searched and searched but cannot find info that
> makes sense to me.
> TIA
> Keith 


Relevant Pages

  • Re: Batch command
    ... >into notepad and then in notepad got to Save As. ... >find the command prompt and run every time you login. ... The program needs to print to an LPT1 printer over ... >> we need to print fromn the dos program. ...
    (microsoft.public.windowsxp.general)
  • Re: Outlook Express Blocked Senders list
    ... still remember how to work from a command line. ... Jim Pickering, MVP, Windows Mail Apps ... read with Notepad which has been the common method of getting a text file ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Sophisticated(!) copying in DOS
    ... Open NOTEPAD and put in the contents. ... If you are using word or wordpad or wordperfect to make the exclude file, ... Trust me that I have spent hours - in batch file and just typing commands in at the command prompt - and no matter what I do, ... You quote generic commands that have some character misplaced, and then you say that this was not the real command anyway. ...
    (microsoft.public.windowsxp.general)
  • Re: Remove Notepad and Wordpad
    ... RunDll32 advpack.dll,LaunchINFSection %windir%\INF\wordpad.inf, MSWordPadUninstall ... The path to the answer file is specified in the u switch in the command, ... Using either of these methods there may be privileges issues, in which case you can use "runas" administrator with the command. ... I know WFP kicks in when I try to delete notepad. ...
    (microsoft.public.windowsxp.general)
  • Re: sed; configure to error on no substitutions made
    ... The sedcommand "t" is sufficient to accomplish ... branch to <label>; if label is omitted, ... # the substitutions to be tested, ...
    (comp.unix.shell)