The Un-Official Proxomitron Forum

Full Version: SHEA'S.cmd.bat
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey Shea , please help me with this . I am running Proxo with Sidki's and JakxIV Pack cfg's ; my proxy tests are transparent and seem to be working nicely ; however , when I reboot , your dos window appears and sometimes closes by itself ( as I think it's supposed to ) and sometimes I have to close it with a CTl C . How do I get it to close everytime by itself ? Thanks
Ralph;

3rd ATTEMPT TO POST AN ANSWER!!!! My patience is starting to frazzle here.

(From my 2nd Attempt: I've already typed this in once and submitted it, but somehow the forum software decided that I didn't really submit it - grrrr. Banging Head)

The short of it is, if you edit the batch file's properties, you'll end up at a six-tabbed dialog box. Select the Program tab, and at the bottom, you should see "Close on exit". If that's not checked, make it so.

Now, if the DOS window still doesn't close, then the batch file didn't finish successfully. If there's no obvious error message, then Windows is playing a dirty trick on you (as usual).

Let's eliminate this possibility before we go to Step Two.


Oddysey
Did that , but DOS window still hangs . Unchecked , checked and still hangs. No error message . Press CTL C and it clears . Program seems to work fine otherwise . Step 2 ?
Oddysey Wrote:3rd ATTEMPT TO POST AN ANSWER!!!!  My patience is starting to frazzle here.

(From my 2nd Attempt: I've already typed this in once and submitted it, but somehow the forum software decided that I didn't really submit it - grrrr.  Banging Head)
Add this link to your shortcuts - http://am1t3ch.3.forumer.com/

Nothing has happened there yet, but it seems to ALWAYS be "up"...
Which I am unfortunate to report is not the case at my 'favorite' Proxo place-to-be...

My fingers are crossed, of course...
But the fingers that are not crossed are on the trigger of an alternative Proxo community...


No disrespect, Kye-U...
Because things ARE improving...

And that 'alternate' place-to-be has a problem with "member validation"...
I see five members signed up - but none but the admin are "validated"...
ProxRocks;

Thanks for the tip, I'll keep an eye peeled.


Kye-U;

Since they use Invision, perhaps you might consider them, at least as a backup. I know that KmrDrow has invested a lot of time and energy on your behalf, and ours, but somehow, it still isn't coming together. I needn't point out the obvious about past hosting solutions you tried - they were up, but so were the ads, scumware, etc.

Wherever KmrDrow is hosting this conglomeration of sites, it doesn't seem to matter. Someone, either Kieran himself or someone he's associated with, is being targeted for some serious reprisals against a whole range of websites. It's gotten pretty hard for me to believe anymore that "script kiddies" are responsible, the damage is much worse, and has gone on for a long time now.

It's almost obvious that you are not the primary target, you're just the "collateral damage". It's for that reason alone that your friends here on this forum are sticking with you, but no matter how hard we try, if the site's down, we can't do much sticking, can we? [unsure] Please, while you're laid up, do some poking around. Perhaps you and/or KmrDrow should visit Gibson's DRDoS Page, it might stir up some ideas.

OK, I feel better now. Thanks for listening, er... reading.


Oddysey
Ralph;
Quote:Program seems to work fine otherwise . Step 2 ?
Almost easy. Since the batch file seems to work (no obvious errors), and you can close the DOS box manually without any complaints from Windows ("A process is still running....." etc.) then you can safely close the thing with the following command, and all will be well in RalphLand.

Modify Shea's cmd.bat to add this command as the very last thing. Be sure there is a carriage return after the command, so that the cursor rests on an empty line below it. Only one empty line, or every promise I just made to you will be null and void. [angry]

Code:
exit

That's all there is to it!! [smoke] You're welcome. Cheers


Oddysey
Thanks Oddysey ,
Quote: Modify Shea's cmd.bat to add this command as the very last thing. Be sure there is a carriage return after the command, so that the cursor rests on an empty line below it. Only one empty line,......That's all there is to it!! 
Well , I think you may have thought I knew how to do that ; you gave me too much credit . But , I think I did fix it ! In properties of Shea'scmd.bat.bat , I checked the advanced box in programs and checked " Prevent MS-DOS-based programs from detecting Windows " and SHAZZAM , it worked ! So far at least Smile!
..::Ralph::..

If your on WinXP I think it closes them automatically when thee program is done working. I just got a new computer that has WinXP and it works fine for me. I also had it on my old Win98 box and it worked fine too. I was thingking to make it easier and faster running to just make a quick VBS or EXE file that creates the files and such and it wouldn't even need a DOS window.


..::ProxRocks::..

About the backup forum. It's hosted on Forumer. They get new servers when the other ones fill up. Currently servers 1 and 2 are filled. So I'm on server 3. They've been having some bug issues with server 3 which has been messing up the posting and stuff so I've been waiting until that's all cleared up. And I haven't hosted any images yet to get the skin finished up.
Ralph;

Oh boy - here we go.

It seems especially hard for me to believe that a program written for DOS could know how to detect if it was running in a DOS session under Windows. That first choice is badly mis-worded!! [angry] Banging Head

It's really the other way around - it's to prevent the Windows kernel from monitoring the DOS session, other than to give some slice of time to the process. (Slicing the processor's time among various apps is called multi-tasking, but you already knew that, right?) Well, if you've been around computers for more than a few days, you'll recall that we used to have "real mode' and "protected mode". Which mode is used for your progroam (your DOS session) is dictated by the first choice under the Advanced tab.

By checking "Prevent.....", you've told Windows to monitor the DOS session for signs of finished activity, and if so, end the session. Left unchecked, this would tell Windows to not monitor the session for activity, and there's the root of your problem. In terms of modes, real mode is the unchecked choice, and is unmonitored. Protected mode is the checked choice, and it's monitored for activity.

'Nuff of that nonsense.

What you've done is good, as far as it goes. However, which was easier - playing hit and miss with Windows settings, or editing a batch file? More to the point, if the batch file has the command "exit" on the last line, would you even have to play with your settings? (Hint: The answer contains only two letters. Wink ) Now imagine how you would tell someone else to make the DOS session close automatically, no matter what. See my point? Thought so.

Gotta run, hope this helped explain why your solution worked, and why I didn't offer it in the first place. Wouldn't want you to think I didn't know about that stuff, now would I? [lol]


Oddysey
Shea , I'm running Win98se and the program was working nicely , although I had reservations about installing it since whenever I start doing things which is over my head , inevitably I screw things up . I must have spent a hour reading Jakx installation instructions , but I got it going . Great program ! Thanks to both of you . Oddysey , I did try editing Shea's batch file with the code "exit" but it didn't work for me until I found that little box to check . Hey , you've got to jump into the water to learn how to swim ! Thanks , everybody
Ralph;
Quote:Hey , you've got to jump into the water to learn how to swim !
Wading in and dog-paddling around for awhile is also acceptable! [lol] Big Teeth [lol]


Oddysey
To SHEA Cheers
..::Oddysey & Ralph::..

I have never found that last 'exit' command to work on ANY batch file I've EVER written. To be honest, none of my batch file have ever closed by themselves except those told to be run on startup. Also, when you check that box, I have found it doesn't make the batch file close automatically, but it makes a shortcut to the batch file and that will make the batch file close automatically if you use that link to run it.

Just my experfiences with batch files and DOS.
Shea;

Try this page: Dos Commands - Exit. Note that it talks about secondary command processors.

That's what a DOS session is under Windows - it's a secondary command processor. That's why the exit command works. Always has, always will. Be sure of two things, though. One, have a blank empty line after the command. Two, have only that one blank, empty line, no more than that one. Otherwise, the batch file execution routines will think it hasn't yet reached the end of the batch file, and the exit command will be ignored.

Quote:Also, when you check that box <Close on exit>, I have found it doesn't make the batch file close automatically, but it makes a shortcut to the batch file and that will make the batch file close automatically if you use that link to run it.
That's odd, I don't remember ever seeing that description before, and it certainly doesn't gibe with my experience. I just tested your hypothesis, and it doesn't work that way for me. Of course, I choose to make windows open a DOS session in the kernel's process ("Prevent ...." box is checked, as per above conversation with Ralph.), so that helps somewhat.

But that part about the shortcut just throws me for a loop. I wanna know more about that - whacha got for me to look at, website-wise?


Oddysey
Perhaps you'all should take note under

Windows version compatibility Eyes Closed Smile

http://home.pcisys.net/~sungstad/useful/PCbatch.html
Pages: 1 2
Reference URL's