CMD commands
Results 1 to 7 of 7

Thread: CMD commands

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    3

    Question CMD commands

    I want to use the del command in the cmd window...I want to delete a directory of files, but i want to do this wihtout the cmd window being open. Basically i want it hidden to the user. Is there anyway to do this, or is there another way to "secretly" delete a directory w/ the users knowleds once the cmd file has been executed

  2. #2
    Registered User FatalException0E's Avatar
    Join Date
    Sep 2000
    Location
    New Braunfels, TX, USA
    Posts
    2,154
    All I can think of right now is to set some properties for the batch file regarding the window.....set the background and font to the same color, so users will just see an all black window come up. They'll probably question what it is, so you'll have to think up an excuse.

    There must be some other way of doing this, because the POS software I work on has the option of hiding batch files from the users when its scheduler runs them.
    Contents: One signature
    || |||| | |||| |||

  3. #3
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    Besides the dubiousness of setting background & forecolours the same for a command window, is there something wrong with 'echo off' ? - Mmmm ... why are you using cmd ? How is this wired up ? & for which o/s ?

    You might like this ... you might not as well ! ... but I think this is the kind of thing you seem to be up to.

  4. #4
    Registered User FatalException0E's Avatar
    Join Date
    Sep 2000
    Location
    New Braunfels, TX, USA
    Posts
    2,154
    [QUOTE=confus-ed]Besides the dubiousness of setting background & forecolours the same for a command window, is there something wrong with 'echo off' ? ...QUOTE]
    *slaps forehead* DOH!
    The obvious always escapes me...
    Contents: One signature
    || |||| | |||| |||

  5. #5
    Senior Member - 1000+ Club Outcoded's Avatar
    Join Date
    Apr 2001
    Location
    Somewhere in the UK, never quite sure where
    Posts
    1,689
    |y echo deltree c:\whatever >nul

    I think - on a mac ATM so can't test it.
    I'm in charge and I say we blow it up

  6. #6
    Geezer confus-ed's Avatar
    Join Date
    Jul 1999
    Location
    In front of my PC....
    Posts
    13,087
    Quote Originally Posted by Outcoded
    |y echo deltree c:\whatever >nul

    I think - on a mac ATM so can't test it.
    Methinks, that ought to read ...
    Echo off
    deltree c:\whatever_directory_needs to go /y
    Here's some syntax of the 'deltree' command which removes any directory & its contents ... I'm still not covinced of the merits of doing 'whatever this is' with cmd

  7. #7
    Registered User browncow's Avatar
    Join Date
    Nov 2002
    Location
    Live in Waterford, MI
    Posts
    26
    Using "echo off" will basically eliminate messages back to the user from the operation, but do you also mean that you want it to run minimized? How about instead of running it from a batch file, run it from a PIF?
    Following our instinct not a trend, go against the grain until the end.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •