1.

Solve : Birthday?

Answer»

I want to make a program that remembers your birthday. In a extern file are the dates; for instance LIKE : Miki 07/06 . If you type in the program the date 07/06, i want the program to show : on 07/06, its miki's birthday

can someone give me a idea or script?
Microsoft has a habit of adding features to batch language with each new release of WINDOWS. Without knowing your OS, it's difficult to write a script that will run on your machine.

This may work:
Code: [Select]@echo off
set /p bdate=Enter Date mm/dd:
for /f "tokens=1-2" %%i in (bdate.txt) do (
if %bdate% EQU %%j echo It's %%i's birthday
)

bdate.txt would be the label of your external file.

Hope this gives you some ideas. 8-)Quote

Microsoft has a habit of adding features to batch language with each new release of Windows. Without knowing your OS, it's difficult to write a script that will run on your machine.

This may work:
Code: [Select]@echo off
set /p bdate=Enter Date mm/dd:
for /f "tokens=1-2" %%i in (bdate.txt) do (
if %bdate% EQU %%j echo It's %%i's birthday
)

bdate.txt would be the label of your external file.

Hope this gives you some ideas. 8-)

It's windows xp, I found out by looking at his last posts, it's mentioned there


Thank you for that BlackBerry. Actually I was trying to hint to the poster to be more forthcoming with information that is not a state secret. Unless this a CONTINUING REQUEST spread over multiple threads, I'm just not sure it should be necessary to research information from past posts in order to respond to the current post.

8-)

Quote
Thank you for that BlackBerry. Actually I was trying to hint to the poster to be more forthcoming with information that is not a state secret. Unless this a continuing request spread over multiple threads, I'm just not sure it should be necessary to research information from past posts in order to respond to the current post.

I think it is up to the poster to make his information known, rather than our RESPONSIBILITY to ferret it out. After all, it is HIS problem. Right, but clicking on the recent post button costed me a few second and after all, beeing nice is never wrong


Quote
I'm just not sure it should be necessary to research information from past posts in order to respond to the current post.

I agree, it's not our job to do it, so I think from now one I will let them say it


Discussion

No Comment Found