download.bg
 Вход Списание  Новини  Програми  Статии  Форум  Чат   Абонамент  Топ95   Архив 

Как мога да направя на един .bat фаил да не се вижда черния прозорец при стартирването му

Автор
Съобщение
anonymous
Пон, 21.05.07, 13:43
Как мога да направя на един .bat фаил да не се вижда черния прозорец при стартирването му
insecteater
Пон, 21.05.07, 13:56

RE: Как мога да направя на един .bat фаил да не се вижда черния прозорец при стартирването му

” Как мога да направя на един .bat фаил да не се вижда черния прозорец при стартирването му

Най лесният начин за който се сещам, е да направиш shortcut към bat файла и в настрройките на shortcut-a да зададеш настройка да се стартира минимизиран.

anonymous
Пон, 21.05.07, 14:07
Няма да ми свърши работа insecteater аз написах във .bat фаила така @echo off но по този начин спря натписите но прозореца остана преди знаех как ставаше но сега като ми трябва не се сещам
anonymous
Сря, 23.05.07, 09:25
Харе де аз като не съм учил MS-DOS и от тука ли никои не го е учил
insecteater
Сря, 23.05.07, 09:53
Това няма нищо общо с DOS а с начина по който работи windows. Мисля че бях срещал програма, чрез която можеш да пускаш BAT файлове като service-и. Ама просто ме мързи да я търся

=============================
the process take 3 files. one launch.bat one invis.vbs and one (your program)

in launch.bat(this files runs your program silently) put in...

wscript.exe "C:\yourpath\invis.vbs" "your file.bat"

in invis.vbs put...

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

and finaly in your file put whatever u want...

echo off
erase c:\junk.txt

well your done just open up launch.bat

редактиран от insecteater на 23.05.07 09:59
anonymous
Сря, 23.05.07, 10:08
Е добре де виш че пак си е
echo off
erase c:junk.txt

но защо като го напиша пак си излиза черния прозорец

дядо_поп
Сря, 23.05.07, 10:24
Цитат
” но защо като го напиша пак си излиза черния прозорец „
Защото така е устроена омразната Богу операционна система Windows. Направи това с шоркъта и бъди щастлив, чадо!
Амин!
anonymous
Сря, 23.05.07, 11:04
еее дядо_поп така много лесно ще се реши пробле ма ми но аз не искам така трябва ми за друга цел ако някои се сети да драсне тука много ше съм му благодарен
angelicstar
Сря, 23.05.07, 12:16
ми що него напишеш на прогпамка като EXE файл и тва е?
anonymous
Сря, 23.05.07, 12:40
То хубава идея даже си има програма за тази цел Bat To Exe Converter
но едно сменяне на разширението от .bat на .exe е по лесно ама както и да е но това сменяне пак не ми свърши табота пак си излиза черния прозорец
angelicstar
Сря, 23.05.07, 12:53
ми нестава на върпос да смениш раширението. и тва Bat To Exe Converter и то само го компилира в пакет ама то и компилирано пак си остава BAT. въпроса е да напишеш ПРОГРАМА а не BATфайл.
anonymous
Сря, 23.05.07, 14:52
Ок а примерно това как ще стане на програма net stop server /y
anonymous
Сря, 23.05.07, 15:29
това си се учи и го има написано
царски път няма за шарените пилета.......
anonymous
Пет, 25.05.07, 09:58
Вярвам че на някого ще му е отполза въпреки че аз не можах толкова да разбера деиствието му

Start
Starts a separate Command Prompt window to run a specified program or command. Used without parameters, start opens a second command prompt window.
Syntax
start ["title"] [/dPath] [/min] [/max] [{/separate | /shared}] [{/low | /normal | /high | /realtime | /abovenormal | belownormal}] [/wait] [FileName] [parameters] Parameters
"title"
Specifies the title to display in Command Prompt window title bar.
/dPath
Specifies the startup directory.
/i
Passes the Cmd.exe startup environment to the new Command Prompt window.
/min
Starts a new minimized Command Prompt window.
/max
Starts a new maximized Command Prompt window.
/separate
Starts 16-bit programs in a separate memory space.
/shared
Starts 16-bit programs in a shared memory space.
/low
Starts an application in the idle priority class.
/normal
Starts an application in the normal priority class.
/high
Starts an application in the high priority class.
/realtime
Starts an application in the realtime priority class.
/abovenormal
Starts an application in the abovenormal priority class.
/belownormal
Starts an application in the belownormal priority class.
/wait
Starts an application and waits for it to end.
/b
Starts an application without opening a new Command Prompt window. CTRL+C handling is ignored unless the application enables CTRL+C processing. Use CTRL+BREAK to interrupt the application.
FileName
Specifies the command or program to start.
parameters
Specifies parameters to pass to the command or program.
Remarks
You can run nonexecutable files through their file association by typing the name of the file as a command. For more information about creating these associations in a command script by using assoc and ftype, see Related Topics.
When you run a command that contains a the string "CMD" as the first token without an extension or path qualifier, "CMD" is replaced with the value of the COMSPEC variable. This prevents users from picking up cmd from the current directory.
When you run a 32-bit graphical user interface (GUI) application, cmd does not wait for the application to quit before returning to the command prompt. This new behavior does not occur if you run the application from a command script.
When you run a command that uses a first token that does not contain an extension, Cmd.exe uses the value of the PATHEXT environment variable to determine which extensions to look for and in what order. The default value for the PATHEXT variable is: .COM;.EXE;.BAT;.CMD (that is, the syntax is the same as the PATH variable, with semicolons separating the different elements).
When you search for an executable and there is no match on any extension, start searches directory name. If it does, start opens Explorer.exe on that path.
Examples
To start the Myapp program at the command prompt and retain use of the current Command Prompt window, type:
start myapp

Коментар

за нас | за разработчици | за реклама | станете автори | in english  © 1998-2024   Experta Ltd.