Subscribe to How-To Geek Підписатись на How-To Geek

Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Hide Flashing Command Line and Batch File Windows On Startup Приховати миготливий командного рядка та пакетних файлів Windows під час запуску

I use a lot of batch files, command line applications, and even Ruby scripts (which run from the command line). Я використовую багато пакетних файлів, додатків командного рядка, і навіть Ruby скрипти (яка запускається з командного рядка). One of the things that has always irritated me is the flashing command prompt window when I make a shortcut for a batch file, especially when I put it into the startup folder to run when I first login. Одна з речей, яка завжди дратувала мене блимати вікно командного рядка, коли я створити ярлик для пакетного файлу, особливо, коли я поклав його в папку автозавантаження для запуску, коли я вперше Логін.

There's a really useful utility that you can use called Там's справді корисна утиліта, яку можна використовувати називається Hidden Start (hstart) Приховані Start (hstart) , which will start up a command line application hidden in the background, which eliminates the flashing window. , Яке запустить програму командного рядка, приховані у фоновому режимі, що виключає блимати вікно.

If you launch the utility with no parameters, it will pop up the settings dialog. Якщо ви запустіть утиліту без параметрів, то з'явиться діалог налаштувань.

When using this utility, there are three key things to remember: Use the /NOWINDOW parameter to keep the window hidden, use the /D=path argument to make sure that the current directory is set correctly, and make sure to surround your application argument with quotes. За допомогою цієї програми, є три ключові пам'ятати: Використовуйте / NOWINDOW параметра тримати вікна приховані, використовуйте параметр / D = шлях аргументи, щоб переконатися, що в поточній директорії встановлені правильно, і переконайтеся, що оточує ваш додаток Аргумент в лапки.

For instance, if I had a batch file stored in c:\scripts\mybatch.bat, I would start it by using the following parameters in my shortcut: Наприклад, якщо у мене був командний файл зберігається в C: \ Scripts \ mybatch.bat, я хотів би почати його за допомогою таких параметрів у моєму ярлика:

hstart /NOWINDOW /D=c:\scripts “c:\scripts\mybatch.bat” hstart / NOWINDOW / D = C: \ Scripts "C: \ Scripts \ mybatch.bat"

You'll probably want to copy hstart.exe into somewhere in the system path, for instance C:\windows might work nicely. Можливо, ви хочете скопіювати hstart.exe в десь в системі шляхом, наприклад, C: \ Windows може працювати добре.

Download Hidden Start (hstart) Завантажити Hidden Start (hstart)

This article was originally written on 03/15/07 Tagged with: Ця стаття була спочатку написана на 03/15/07 тегами: Customizing: Tips & Tweaks Установки: Поради & Tweaks , , Vista Tips & Tweaks Vista Поради & Tweaks , , Windows Windows , , Windows Vista Windows Vista

Daily Email Updates Email Щоденні оновлення

You can get our how-to articles in your inbox each day for free. Ви можете отримати наші довідкові статті у Вашу поштову скриньку щодня безкоштовно. Just enter your name and email below: Просто введіть ваші ім'я та адресу електронної пошти нижче:


Name: Ім'я:
Email: Електронна пошта:

Comments (6) Коментарі (6)

  1. Mark Woody Марк Woody

    Hi I need a better Geek than myself to help me out. Привіт мені потрібна Грайте краще, ніж я міг би допомогти мені. I am dying and am on disability, I don't feel good and major time on the computer is hard on me. Я вмираю, і я про інвалідність, я не відчуваю себе добре і основний час на комп'ютері важко на мене. I initially bought a 250 GB SATA 150 drive and put Vista on it. Спочатку я купив 250 GB SATA 150 дисків і покласти Vista на ньому. I noticed Battlefield 2142 didn't work to well and my Belkin Nostromo N52 game pad does not have a Vista driver. Я помітив, Battlefield 2142 не працюють добре і моєї Belkin Nostromo N52 Game Pad немає драйверів Vista. I just purchased a 350 GB 300 drive, I know that should be my C drive with both Vista and XP on there to take care of my troubles, plus maybe give me a speed boost, I don't know if that really makes a difference but it is better than Ultra 133 and SATA 150 or whatever they call it. Я тільки що купив 350 Гб 300 дисків, я знаю, що повинно бути моїм C диск в Vista і XP там піклуватися про свої пригоди, плюс, може бути, дати мені збільшити швидкість, я не знаю, що дійсно має значення але це краще, ніж Ultra 133 і SATA 150 або як вони це називають. Is there going to be a speed difference? Чи буде різниця в швидкості? Anyway in the old 386 days and 486 days, I made a batch file, that game me load up options, one for gaming taking care of that vital first bit of ram, or for regular use. У всякому разі в старих 386 днів і 486 днів, я зробив пакетний файл, то гра мені завантажити сторінку, по одному для ігор піклуватися про життєво важливою, що перший біт пам'яті, або для регулярного використання. For right now could one write a boot up option bat file that lets hit 1 to boot VISTA for everything but gaming or hit 2 to go to another drive with (the 350 GB) drive with my games and XP on it, then later put VISTA 64 home premium on it. Для зараз можна було написати опцію завантаження файлу летюча миша, яка дозволяє Hit 1 до завантаження Vista для ігор, але всі або натисніть 2, щоб піти на другий диск з (350 Гб) дисків з моєї гри і XP на нього, а потім поклав VISTA 64 Home Premium на ній. I do not have the upgradeable version. Я не маю оновлюваної версії. I remember in the old days I colored it yellow and after 20 secs it went to the default parameters. Я пам'ятаю, як в старі часи я кольорові воно жовтого і 20 секунд після його відправлення на параметри за замовчуванням. Is there anyone if it is possible who could create a boot up option because the OS Vista and XP respectively are on different drives, until I can fix it the right way. Чи є хто, якщо це можливо, які могли б створити завантажувальний до операції, так як ОС Vista і XP, відповідно знаходяться на різних дисках, поки я можу виправити це правильний шлях. Could any one right me a batch file, and where to insert it or is this a long way to do things, I can just change boot up drive in Bios but that is a pain… So much for my home made computer skills and I've built over 20. Чи може одне право мене пакетний файл, і де, щоб вставити його або це довгий шлях, щоб робити речі, я можу просто змінити завантаженні диска в Bios, але це біль ... Так багато для мого домашнього комп'ютера навичок і я Е. побудовано понад 20. I get fatigued real easy and can stay with it, like I use to could. Я втомлений отримати реальну легкий і може залишатися з нею, як я використовую для міг. Anyway just asking. У будь-якому випадку просто так запитав. I love your site and while trying to figure out this boot method based on the old days i found several helpful tips and ways to do things. Я люблю ваш сайт і намагаючись з'ясувати це спосіб завантаження на основі старих днів я знайшов кілька корисних порад та способів робити. Nice Site! Nice Site!

    Thank You! Спасибо!
    Mark Woody Марк Woody
    rogue-diver@comcast.net rogue-diver@comcast.net

  2. The Geek Грайте та вигравайте

    What you are looking for is the EasyBCD utility, which will let you customize your Vista bootup options to boot off the other drive. Що ви шукаєте утиліту EasyBCD, яка дозволить вам налаштувати параметри завантаження Vista завантажитися з іншого диска.

    http://neosmart.net/dl.php?id=1 http://neosmart.net/dl.php?id=1

    Also fyi, we just opened a forum here, which is a good place to ask these types of questions, because a lot more people will see your question right away. Також вашого відома, ми тільки що відкрився форум тут, що це хороше місце, щоб задавати такі типи питань, тому що набагато більше людей побачить своє питання прямо зараз.

    http://www.howtogeek.com/forum/ http://www.howtogeek.com/forum/

  3. Zac S Зак S

    Just a little FYI that this utility is great for any computer that doesn't have a local group policy or the local group policy is over written by a domain policy. Трохи FYI, що дана утиліта відмінно підходить для будь-якого комп'ютера, який не має локальної групової політики або локальної політикою групи над написаним політику домену. Another way to fire off those batch files without ever showing the command line interface is thru the use of a group policy know as logon scripts. Інший спосіб пустити ці командні файли, навіть не показуючи інтерфейсу командного рядка за допомогою групових політик знаю як сценарії входу. Go to Start>Run type gpedit.msc and expand the Windows Settings under User Configuration. У меню Пуск> Виконати, введіть gpedit.msc і розширити настройки під Windows Конфігурація користувача. You will see scripts and then you can choose from Logon or Logoff. Ви побачите сценарій, а потім ви можете вибрати з входу або виходу з неї. You can also do the same under the Computer Configuration only difference is these scripts are Startup and Shut Down. Ви також можете зробити те ж саме під Конфігурація комп'ютера Єдина відмінність полягає в ці скрипти запуску і при закритті. The difference is when the computer is starting up before it gets to the login prompt it runs the Startup Script, after a user has logged on, it runs the Logon Script. Різниця в тому, коли комп'ютер починає вгору перш ніж воно Логін рядку він запускає сценарій запуску, після того, як користувач ввійшов до системи, вона запускає сценарій входу. The idea is the same for Logoff and Shut Down for those processes. Ідея ж для виходу з системи і закрита на ці процеси. Hope this little tidbit helps out where practical. Сподіваюся, що це мало допомагає пікантний, де практично.

  4. Andreas Андреас

    Fantastic. Фантастика. I use this with a batch file that send my machine to sleep. Я використовувати цей командний файл, відправити мою машину спати. For some unfathomable reason Microsoft has stopped putting a “Sleep” hotkey on keyboards. Для деяких незбагненної причини Microsoft припинила покласти "Hotkey Сон" на клавішних. So I remap the “Log Off Key”. Так що я перепризначити "Журнал Off Key". The file is very simple: rundll32.exe powrprof.dll,SetSuspendState Sleep Немає файлу дуже простий: rundll32.exe powrprof.dll, SetSuspendState сну

  5. robmaister robmaister

    would you know how to run the program silently? Ви знаєте, як запустити програму мовчки? I am trying to mix this and a batch file in the “Send To” menu, in order to open the menu itself. Я намагаюся змішувати це і пакетний файл у "Відправити" меню, щоб відкрити меню сама. Because of the menu's nature, it tacks on a %1 automatically, and hstart returns a “Failed to create process” error with the filename of the file I had selected. Через природи в меню, кнопками на 1% автоматично, і hstart повертає "Не вдалося створити процес" помилка назва файлу я вибрав. If there is no way, I will just bear with the cmd window, or see if I can write an autoit script instead.. Якщо немає можливості, я просто терпіти CMD вікно, або побачити, чи можу я написати AutoIt сценарію замість ..

  6. r0ck3t3r r0ck3t3r

    Nice idea, but what if the startup script fails? Хороша ідея, але що, якщо при запуску сценарію провалиться? Are you able to see that? Чи здатні Ви, що? What I usually do is have the batch script access WSH and generate a msgbox with the error code. Що я роблю це має пакетний доступ сценаріїв WSH і генерувати MsgBox з кодом помилки. Just a thought. Просто думки. This way the batch can run silently unless it encounters a problem it can't handle. Таким чином, партія може працювати безшумно, якщо він стикається з проблемою, він не може впоратися.


Our Friends Наші друзі
Getting Started Приступаючи до роботи


About How-To Geek Про How-To Geek
What Is That Process? Що це за процес?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe Ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. Всі права захищені.