Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Is there a way to shut one program down, then launch a second program immediately upon exitng the former program using a DOS batch file ? In case it will benefit other users, I am trying to solve the following problem: If you are using a remote access program via the web to remotely use your PC ( PCAnywhere, etc.) it seems logical that a hacker could possibly see the password you type in to gain entry to your computer, then use this password to log back in to your computer after you log off. Is it possible to write a DOS batch file which will run a program to close the connection and then immediately run another program to reset your password from a preset list that you have generated and have a printed copy of ? This way noone else could see what the new password becomes since the computer is no longer logged onto the network during the password reset. Every subsequent time you log in, the new password is the next one down on the list and only you would have a hardcopy of the list. But how can I get DOS to shutdown the networking program ( or any other program for that matter ) and then run the password reset program back to back so that there is absolutely no time interval for someone else to log in after me before the computer resets to the next password on my list ?
You should really check into Secure Socket Layering (SSL), there are some freeware programs that provide ecrypted connections over the internet. I doubt that you could reset your password in a windows program using dos unless the password is stored in a seperate file that the program creates, then of course you could simply create several password files and change the backup filenames with the active file. This is a very complex question and would take a lot more info than you have provided and is very likely not possible. Try looking up info on SSL....
Thanks for responding. I will research SSL. But resetting the password is no problem. I would just use a macro recorder ( Ghostmouse is a pretty good one), which allows me to use a GUI. If I put the command line for this program in the batch file, it will start and go through one iteration and then quit. It would open a text file containing all of the consecutive passwords in a list, then just delete, copy, paste, or whatever you would do with your mouse to change to the next password if you were actually sitting at your computer. I guess my real problem is how to either use a dos command to close the networking program, or else use dos to detect that the program has been closed from the remote end and then act immediately to fire up the macro.
Is there a dos command to close any given program ?
I approach this from dos because that's most familiar, but I guess if there's a way to make windows run programs back to back while all others are prevented from starting ( I know there are some windows that run programs one by one ) or detect a program closedown and then act on it then that would do just as well. Anyway, thanks again for responding, I do appreciate it.
Summary: Greetings i would like to know if anyone can help me? I would like to have a batch file in a floppy that i could put in the floppy drive and reboot my machine and be able to reset the administrator pa...
Summary: Sorry DoOMsdAY, but you are mistaken. The DOS batch programming language IS a real programming language - it is real programming, just as valid as any other programming. Just because it is an intepret...