|
Answer» Ok this is what I would like......
firstly i would like a batch file for windows xp which can TAKE input from the user by asking for an occasion and create a folder inside the current directory giving the date the folder was created followed by the name i gave to the occasion. This is what i would like the file to look like........
yyyy_mm_dd_
i would be very impressed if SOMEONE were also able to make a birthday reminder that ran as a .cmd file whenever i logged on. I would like the file to find the user home directory before reading a reminder.txt file from the home directory before searching for the current date of lines in the text file, before telling me any reminders for that date in the cmd screen, if there isnt any entries the .cmd file should exit automatically.
Good luck no_surrender,
Easy...
This creates the directory:
set /p occ=Enter the occasion: ||GOTO:EOF md %date:~-4%_%date:~4,2%_%date:~7,2%_%occ%
This shows all remainders:
FINDSTR /c:"%date:~4,6%" "%HOMEPATH%.\reminder.txt"&&pause
The 'pause' will only be executed when at least one entry matches the current month and day. Drop this line into a cmd file and add a link to the batch file to your Start-Programs-Startup menu.
See more examples to conditional execution here: [highlight]http://dostips.cmdtips.com/DtCodeSnippets.php[/highlight]
reminder.txt could have birthdays like this: 03/14/1879 Albert Einstein 03/12/1771 DosItHelp ...
Have FUN
|