Search found 22 matches

by YukoValis
05 Mar 2019 12:12
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

Oooh. and here I thought you were testing me lol The working one is this start "Close Observations" /min cmd /s /q /d /c "pause>nul|set /p "=Press any key on this window to close ping windows ..."&echo(&taskkill /f /t /fi "WINDOWTITLE eq ping*" /im cmd.exe" The one I wanted to work is %start% "cmd /...
by YukoValis
05 Mar 2019 10:31
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

Ok I've been pouring over this script for the last 2 hours inbetween calls. I'd added and subtracted here and there. I've studied it closely with the one that works. I don't think I know enough to know what the issue is. I feel like I'm missing something very simple. In that time I did learn how to ...
by YukoValis
04 Mar 2019 12:59
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

Hmm. I'm not familiar with escaping. In fact this is the first time I heard the term. ok so I looked at all the ^'s there are an odd number, but that seems to work on all the other lines. There is an even number of "" so I don't think that is the case. I looked at the working line and tried to compa...
by YukoValis
04 Mar 2019 11:53
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

I found an error that flashes right away.

Did I screw it up?

%start% "cmd /s /q /d /c ^"^"mode con cols=70 lines=25^&^(pause^>nul^|set /p ^"^"^=Press any key on this window to close ping windows ...^"^"^)^&echo^(^&taskkill /f /t /fi ^"^"WINDOWTITLE eq ping*^"^" /im cmd.exe^"^"" 1158 684
by YukoValis
04 Mar 2019 11:44
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

If it helps, this is the working command before the resizes and position hits.

start "Close Observations" /min cmd /s /q /d /c "pause>nul|set /p "=Press any key on this window to close ping windows ..."&echo(&taskkill /f /t /fi "WINDOWTITLE eq ping*" /im cmd.exe"
by YukoValis
04 Mar 2019 10:35
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

or I could just change the kill command to ping instead of observation and kill all the ping commands >.< I'm an idiot. Thank you, that command does work. One quick question though before I stop bugging you lol. Is there any way to move the "press any button" window like the others? if not that is f...
by YukoValis
04 Mar 2019 10:16
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

I'm so sorry. I got pretty sick and bedridden. So I was out of work for a few days. : ( My apologies.
Anyway, yeah only the tracert gets changed to Observation. Saved a pic
by YukoValis
27 Feb 2019 13:28
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

Sadly no this one or the one before work. I tried normally, and with mucking about with them. I'm not putting in a domain name for %number% I'm putting in the store number. i.e. 0436, 1767. Here is the thing I did notice. You did manage to change the tracert window to "Observations" that I feel was ...
by YukoValis
27 Feb 2019 11:18
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

Aha I see the problem. So it only closes the tracert, which is the only thing renamed. I'm guessing since the "set /p number="store number? "?" I need is messing with those windows, and not letting the name be changed. Either that or I'm putting that command in the wrong place. Maybe the command you...
by YukoValis
26 Feb 2019 14:15
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

I just have a random thought. When batch calls a command window, is it possible for the command to name it something or even assign the ID? In which case there could be a bunch of kill or close commands behind a pause further in the script.
by YukoValis
22 Feb 2019 12:04
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

and I'm back. Thank you for the help by the way. It might be something in my work that is not allowing the line to work. Since things are a bit restrictive here. I'm surprised I can even access the registry with the original to place the windows. I'll take what you gave me and fiddle about with it. ...
by YukoValis
20 Feb 2019 17:40
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

Hmm no. I don't think it is working like that. It only seems to close that window. I've tried to figure a way to alter it like putting a wild card, even if I don't know if those exist in this format. before the variable, after the variable. etc I hate to say it. but is there a more simple solution? ...
by YukoValis
20 Feb 2019 17:19
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

It seems to close just that window, and all the others remain open.
by YukoValis
20 Feb 2019 16:56
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Re: Closing command prompt windows.

damn. It doesn't seem to be working. Maybe it conflicts with something else I have to make all this work? Here I'll show you what I have. @if (@a)==(@b) @end /* @echo off &setlocal set "start=cscript //nologo //e:jscript %~fs0 " set /p number="4 digit? "? rem Made by Chris K and mostly Steffen :: co...
by YukoValis
20 Feb 2019 11:49
Forum: DOS Batch Forum
Topic: Closing command prompt windows.
Replies: 26
Views: 19169

Closing command prompt windows.

So I've run into a dead end again. After the super amazing AGerman helped me with a batch that opens multiple ping command prompts, I've been a lot better at work. Now I'm seeking to improve it even more. So I run my batch, and it opens about 8 command prompts of pings. I was wondering if I could pu...