Ask Experts Questions for FREE Help !
Ask
    ubharedev's Avatar
    ubharedev Posts: 134, Reputation: 1
    Junior Member
     
    #1

    Jun 10, 2009, 01:42 AM
    Creating batch file
    Hi,
    I have created batch file and saved with .bat from notepad.

    And I wanted to run that file on startup of my computer but I don't want to see that black DOS window while batch file is running on startup.

    Is there any other keyword or statements that I can put in batch file that will hide itself while running.

    Please tell thanks in advanced.
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #2

    Jun 10, 2009, 03:59 AM

    If you've dropped it in your Startup folder, it will run. You can enter a "Pause" statement" (Pause alone on a line) to cause the batch file to wait for user input. It will say "Press any key to continue.. . "
    ubharedev's Avatar
    ubharedev Posts: 134, Reputation: 1
    Junior Member
     
    #3

    Jun 10, 2009, 05:05 AM

    I don't want it to ask for any input,
    I just want that batch file should run in background.
    I don't want to see that DOS interface while batch file is running.
    I should run in background, without knowing to me, on startup.
    Perito's Avatar
    Perito Posts: 3,139, Reputation: 150
    Ultra Member
     
    #4

    Jun 10, 2009, 05:09 AM
    OK. I misunderstood.

    There is nothing you can put in a batch file to hide the DOS window and keep it from appearing. Sorry.
    You can put "@echo off" at the top of the batch file. This will prevent anything from being written to the DOS window and may speed up processing. It might be possible to speed up processing to where you won't see the DOS window.

    You can also change the way a batch file is called in file types options of the shortcut. Call it with a command line like this: "START /MINIMIZED /WAIT COMMAND.COM /C [mybat.bat]". This has a side-effect: you will see a button on the task bar. Also put "EXIT" as the last line in the batch file so the window will close itself.

    It that doesn't work, the only other option I can think of is to write a small application (if you're a programmer) that will do what you want it to do and hide the main window. VBScript can be used.
    ubharedev's Avatar
    ubharedev Posts: 134, Reputation: 1
    Junior Member
     
    #5

    Jul 20, 2009, 02:45 AM

    Thanks for reply Perito,

    I have converted batch file to exe ghost application through batch to exe converter software.
    Now it doesn't show DOS window on startup.
    Dont treadonme's Avatar
    Dont treadonme Posts: 115, Reputation: -6
    Junior Member
     
    #6

    Aug 3, 2009, 08:01 AM

    It's time you learn to use:

    AutoIt Script Home Page

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search


Check out some similar questions!

Batch file- Copy current date files [ 3 Answers ]

Dear experts, How do I create a dos batch file to copy only todays(current date) files from the directory.

How to pass username & password through batch file [ 1 Answers ]

Hello experts I am conneting to my ftp server through batch file. But every time it is asking me for username & password So how do I pass the authentification (username & Password) parameters through the batch file itself. (I need to automate my batch file , passing the username and...

Batch file over LAN [ 2 Answers ]

I want to install bat file over lan

The foolproof backup batch file! [ 4 Answers ]

Hi, hope this is the right place to ask about windows XP dos batch files. I fix home PCs for a living and want to make a foolproof backup procedure that runs overnight. I want the user to plug in a USB drive Thursday eve and take it away on Friday with the backup files on it. Im using Acronis...

Batch File In Dos [ 2 Answers ]

How do I make a batch file in dos that will open a program. I need to name the file S The file is acct\prog\solomon\solomon I have this in one PC but forgot how it create the command.


View more questions Search