Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

help with flashing command window when calling batch file

  • 06-06-2007 11:23pm
    #1
    Closed Accounts Posts: 1,152 ✭✭✭


    Hi all,
    I am using the schtask sceduler to call a batch script every minute to update a folder over FTP. This works perfectly except for one thing, when called, the batch script opens the command window and can be seen on screen for a second or two. I don't want this to happen due to a program running which is sending its output to another screen.

    So is there anyway to prevent the command prompt from been shown when the batch file is called?

    Thanks


Comments

  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    You can redirect the output, which should do it.

    That is, the command is probably something like "dostuff.bat". Change the command to "dostuff.bat > logfile.log".

    That should do the trick I think.


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,581 Mod ✭✭✭✭Capt'n Midnight


    create a shortcut to the batch file and in the properties run minimised


Advertisement