Solved I Need Help With My Batch Admin Tool

April 5, 2015 at 21:18:54
Specs: Windows 8
THIS IS IRRELEVANT TO THE PROBLEM
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
This is going to be a thread that I'm going to update with every new problem that arises because I'm tired of making new posts and I know how you guys LOVE noobs spamming this wonderful website with unnecessary posts.

THE RELEVANT STUFF STARTS HERE
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
OK, now that all that is out of the way I am making (in my standards) a fairly large program that will be used on a network of computers with a shared memory between 4 people. this program will allow anyone with the admin program to chat to the users with visual basic text boxes open websites on the users CPU and spam them with visual basic text boxes while the users program will be able to create visual basic text boxes (one at a time) on the admin and other users CPU.

Right now I am going to start with my first problem, this program has a receive mode because from what I know, correct me if I'm wrong, there is no possible way to check for the users or the admins chat and still be able to chat yourself without the use of another program running, right now I have the integrated "Receive Only Mode" and as the name states, it turns the chat program into a receiver and renders all other functions useless but for some reason unknown to me the receive mode does not start the .vbs program and does not delete it either, it alters it in a weird way, once the process is done it puts the .vbs program in a sort of limbo mode, the .vbs is still there but is impossible to delete because when I try it says that the program is not there. anyway here is the code.

:R-Mode
cls
echo ================================================================================
echo Recive Mode
echo ================================================================================
echo.
echo You Are Now On Recive Mode...
echo.
if exist M-Chat.vbs start M-Chat.vbs
if exist M-Chat.vbs del M-Chat.vbs
if not exist M-Chat.vbs echo There Is Currently No Chats
goto R-Mode


See More: I Need Help With My Batch Admin Tool

Report •


✔ Best Answer
June 3, 2015 at 13:09:45
Sure. (Sorry for the long time it took to respond.)

I'll explain line by line.

if exist M-Chat.vbs (
This looks for a file called "M-Chat.vbs" in the current directory. The "(" at the end means that this is an if clause, those are enclosed by ")" which in our case is at the last line.

start /wait M-Chat.vbs
This starts the M-Chat.vbs file. The /wait parameter tells it to wait until the process is closed.

del /q M-Chat.vbs
This deletes the M-Chat.vbs file. The /Q parameter deletes it without prompting the user. (/Q for "Quiet")

)
This closes the if clause.

99 little bugs in the code,
99 little bugs.
Take one down, patch it around,
129 little bugs in the code.



#1
April 5, 2015 at 21:41:02
Sorry for the giant paragraphs but I wanted to make sure I explained everything well, and if you don't understand something just ask because you can't very well help me if you haven't a clue what I'm saying.

EDIT: wow no one? did I do something wrong in my post?

message edited by Smev1


Report •

#2
April 18, 2015 at 12:24:32
Try:

if exist M-Chat.vbs (
start /wait M-Chat.vbs
del /q M-Chat.vbs
)

99 little bugs in the code,
99 little bugs.
Take one down, patch it around,
129 little bugs in the code.


Report •

#3
April 19, 2015 at 21:49:24
Wow, thanks but I don't quite understand the code, I find that its not good if it just works, I also need to know how it works or else I can't call it my program can I?
So could you try to tell me how this code works for future refence?

Report •

Related Solutions

#4
June 3, 2015 at 13:09:45
✔ Best Answer
Sure. (Sorry for the long time it took to respond.)

I'll explain line by line.

if exist M-Chat.vbs (
This looks for a file called "M-Chat.vbs" in the current directory. The "(" at the end means that this is an if clause, those are enclosed by ")" which in our case is at the last line.

start /wait M-Chat.vbs
This starts the M-Chat.vbs file. The /wait parameter tells it to wait until the process is closed.

del /q M-Chat.vbs
This deletes the M-Chat.vbs file. The /Q parameter deletes it without prompting the user. (/Q for "Quiet")

)
This closes the if clause.

99 little bugs in the code,
99 little bugs.
Take one down, patch it around,
129 little bugs in the code.


Report •

#5
August 7, 2015 at 23:01:28
thanks for all the help I wish I could use this but unfortunately my laptops motherboard got fried and I lost my programs so now on my new desktop I will most likely be more active on this website once again.

Report •


Ask Question