Re: scheduled task to back up development folder

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Richard Otter (sorry_at_yahoo.com)
Date: 06/17/04

  • Next message: Kanthi: "Sample scripts for SQLServer administration"
    Date: Thu, 17 Jun 2004 15:50:55 -0700
    
    

    That worked.

    I started with a win32 blank app and removed the code that created a main
    window.
    I did a cretaeprocess with the no window param and set the command line to
    the name of my command file. (devBU.cmd)

    I was hoping that there was a way of launching via scheduled task, something
    already in the Windows system that would take a command line and do it
    without displaying a window.

    "John Phillips" <jjphillipsREMOVE@REMOVEhotmail.com> wrote in message
    news:OlBs%23XKVEHA.2320@TK2MSFTNGP10.phx.gbl...
    > Check out CreateProcess(), with the CREATE_NO_WINDOW attribute.
    >
    >
    > --
    > John Phillips
    > MVP - Windows SDK
    >
    >
    >
    > "Richard Otter" <sorry@yahoo.com> wrote in message
    > news:Od0B46JVEHA.3476@tk2msftngp13.phx.gbl...
    > > I have written a simple scheduled task to copy files with the archive
    bit
    > > set from my development directory to another folder. (I hit the wrong
    > button
    > > on a SourceSafe get and almost lost work.)
    > >
    > > It runs every 10 minutes during the day. Great. However, when it runs,
    it
    > > briefly pops up a command line window. Right now, it feels reassuring.
    By
    > > tomorrow, it will be annoying.
    > >
    > > How can I run my xcopy command without the pop up?
    > >
    > > Thanks,
    > > Richard
    > >
    > >
    >
    >


  • Next message: Kanthi: "Sample scripts for SQLServer administration"
  • Quantcast