Author Options:

Help...? Answered

I have figured out how to make an inbox setup, I just need help. I am not asking for someone to give me the whole answer, but rather help me figure out what the problem is. This isn't the program itself (obviously), just a section Please take a look:

if %command% EQU 5 (chdir C:\chdir Documents and Settingschdir All Userschdir Desktopchdir %global.username%IF EXIST Mail.txt (type %global.username%echo You have mail!pause > nulset command=goto AccountPanel) ELSE (echo No new messages.pause > nulset command=goto AccountPanel)
For some reason, I can only get it to say "You have no new messages" or "You have mail!" rather than the right one for the situation. Now, It keeps appearing and disapearing in a window whenever I select the number five. All users have the same exact Account Panel, so %global.username% just represents the user that is currently logged on using set globals. I am kindly asking for help, not for someone to do it for me. I know that batch isn't a real scripting language, but it is fun to work with, just... confusing. I am sure I have all of the directories correct. Please help!

4 Replies

Prof. Pickle (author)2012-12-15

Python would be a better language to do this in...

I don't really know where your going here.

Select as Best AnswerUndo Best Answer

lemonie (author)2009-06-22

You deleted the question before I posted this link:
Might go part of the way, but I couldn't find anything like what you saw in the video.


Select as Best AnswerUndo Best Answer

lemonie (author)2009-06-20

Batch files have their limitations you know? A batch file is a batch of commands, it's not a programming language. At some point you'll have to stop asking "how do I do this with a batch?" and just ask "how do I do this?" Visual Basic? L

Select as Best AnswerUndo Best Answer

Goodhart (author)2009-06-20

This would be MUCH easier in a real language, or script.

Select as Best AnswerUndo Best Answer