iCal
My iCal works now, but placing the iCal.bat in the Startup folder did not work for me because it could not find the path to the iCal.exe. What did work was placing a Shortcut of iCal.bat on the Startup folder and leaving the original iCal.bat next to the iCal.exe .
Thanks
PS. I'm running 2 Y's docks (one vertical, one horizontal) , each copy has a shortcut in the Startup folder. Normally they both launch at startup but now with the iCal program only the Y's dock with the iCal icon launches the other is inhibited from automatically starting. It's no big deal, I just launch the second Y's dock manually. ![]()
theuknown it may be due to not liking the space in "Program Files" folder. I get an error where it cant find the folder named /Program since it doesnt like the space.
Is there a way tof ix this without moving the objdock folder from the Program Files folder?
The whole idea of ical is:
1) find the date
2) copy the .png to a level up.
3) delete the ical.png
4) rename .png to ical.png
How do we refresh this icon ?
5) shutdown the dock
6) startup the dock.
The file is never intended to startup the dockbar with it. Start the dockbar like you normally do. And click the ical-icon in the dockbar to refresh the calendar ...
theuknown it may be due to not liking the space in "Program Files" folder. I get an error where it cant find the folder named /Program since it doesnt like the space.Is there a way tof ix this without moving the objdock folder from the Program Files folder?
make sure every filename mentioned in the whole batchfile are enclosed with " ..." (double quote ... so not twice single quote
)
example : instead of %temp%\date.txt
try : "%temp%\date.txt"
For those of you who have had problems in running the iCal on Windows XP, here is the solution:
1. Create this .bat file in the icons\iCal folder.
@echo off
if [%min%]==[1] goto 2
set min=1
start /min ical.bat
goto end
:2
set min=
cls
taskkill /F /IM YzDock.exe
attrib -r -a -s -h %temp%\date.txt
del %temp%\date.txt
attrib -r -a -s -h ical.png
del ical.png
set png=
echo.|date|find "current">%temp%\date.txt
FOR /F "tokens=6 " %%i in (%temp%\date.txt) do @echo %%i>%temp%\date.txt
FOR /F "tokens=5 delims= " %%i in (%temp%\date.txt) do @echo %%i>%temp%\date.txt
FOR /F "tokens=1,2,3* delims=/" %%i in (%temp%\date.txt) do set png=%%i_%%j
copy images\%png%.png ical.png
start ..\..\YzDock.exe
del %temp%\date.txt
cd ..\..
echo.|type itemlist.ini|find /I "ical\iCal.png"
if errorlevel 1 echo iCal type.app %CD%\icons\iCal\iCal.exe - %CD%\icons\iCal\ show.normal ical\iCal.png>>itemlist.ini
:end
exit
2. Open Task Scheduler (Start->Control Panel->Scheduled Tasks) and create a schedule. When a dialog box opens press Next. Then on the second dialog box choose Browse and locate the .bat file you just created.
3. On the next screen, choose a name. Click the "Daily" button. Press Next. On the next screen change the start time to 12:00 AM and click "Everyday". On the next screen you will be asked for the password for your current Windows XP user. Type it and press next.
4. On the next screen, check the "Open advanced properties for this task...". Press next.
5. On the next screen, click on the schedule tab. In this tab, click "Show multiple schedules." Then press "New" to create a new schedule. Then choose "At Logon" at Scheduled Task. Then press OK. (This second schedule will update your iCal even though you logged on at past 12:00 am as I usually do)
That's all!
I just edited a few things (though I forgot which).
Hope this helps!
If you have problems with the batch file not copying the png image.
1. Your short date format must be either M/d/yyyy or d-M-yyyy
I have tried with MM/dd/yyyy and dd-MM-yyyy and the batch file would not copy the png.
This was because the set png=%%i_%%j would look like:
png=The current date is : 03_29 or
png=03_The current date is : 29
Therefore, the correct png could not be located.
If anyone can find a way around this please let me know, I would prefer to use dd-MM-yyyy as my short date format.
To be honest, you DO NOT have to change the date/month/year format at all.
I did not changed my settings and I have no problems. It works fine with the XP default setting.
However, what you do have to do, and it is very anoying, is to have ical and OD restart themselfs by having to schedule them to refresh. Now that is just a pain in the rear. There has got to be another way!
iCal rocks. ![]()
I've been playin around and have developed this update to my original script.
Its the same as my old version which has had a number of changes made to it thus far by many people.
But this new one works regardless of your date format, and it dosnt open your XP search window.
If this still dosn't work, the batch file option isn't for you.
To use, follow the instructions posted by pretty much everyone else, but substitute their complete script for that in ical.txt.
Heres the link to the script containing the entire code (Not Edited For Tabs).
Rename it to .bat and there you go.
jolhof, this script is written for YzDock, not OD.
If you use it with Yz u dont need to refresh, it happens automatically.
If you want an OD port check out the OD forum, however i dont think they have this updated script.
If you need the update please tell me and ill see what i can do.
Another general note, if you need to change the taskkill command to something else, dont bother continuing, the rest of the script wont work.
I hope this solves a few more peoples problems.
P.S i didnt post the CODE because i needed to use tabs, and in this forum u cant.
funny cause the batch file still doesn't kill my first dock and so...
i'm still get two docks after 12.
this is the major problem im seeing, if the taskkill command dosnt work, the rest is probly a waist of time.
i dont know y, but since i dont have the problem i cant help ny1. sry
I have a problem here >_<
my Scheduled Tasks dosen't work....
I set it run every day at 12:00 AM
but don't know why it dosen't work .....
when 12:00 AM pass....
nothing happen...>_<
any idea what happen ??
is there a seperate script which i can add to task manager to kill yz dock like 10seconds before it runs ical.bat?
thy, ive seen this problem a number of occoasion with the scheduler, and it usually is because you havent put the correct password in to allow the task to run. It dosnt say if its right or wrong so you dont have any idea. It just dosnt run
HearshotKidDisaster, the below script gives you roughly a ten second delay.
If you want you could incorporate it into iCal.bat by taking off the first line "@echo off", and the last line "exit".
then put this edit script in place of the line in ical.bat that says "taskkill /F /IM YzDock.exe".
iCal.bat will pause and then quit YzDock all in the one script.
@echo off
SET D=0
SET T=
SET H=
:DIGIT
if %D%==9 goto TENS
if %D%==8 set D=9
if %D%==7 set D=8
if %D%==6 set D=7
if %D%==5 set D=6
if %D%==4 set D=5
if %D%==3 set D=4
if %D%==2 set D=3
if %D%==1 set D=2
if %D%==0 set D=1
if %D%==N set D=1
goto DIGIT
:TENS
IF [%T%]==[] set T=N
set D=0
if %T%==9 goto HUNDREDS
if %T%==8 set T=9
if %T%==7 set T=8
if %T%==6 set T=7
if %T%==5 set T=6
if %T%==4 set T=5
if %T%==3 set T=4
if %T%==2 set T=3
if %T%==1 set T=2
if %T%==0 set T=1
if %T%==N set T=1
goto DIGIT
:HUNDREDS
IF [%H%]==[] set H=N
set T=0
if %H%==9 goto END
if %H%==8 set H=9
if %H%==7 set H=8
if %H%==6 set H=7
if %H%==5 set H=6
if %H%==4 set H=5
if %H%==3 set H=4
if %H%==2 set H=3
if %H%==1 set H=2
if %H%==0 set H=1
if %H%==N set H=1
goto DIGIT
:END
taskkill /F /IM YzDock.exe
exit
hope this helps
Got it working yay, thanks for the link ![]()
Originally posted by theunknown@Apr 9 2003, 11:47 AMthy, ive seen this problem a number of occoasion with the scheduler, and it usually is because you havent put the correct password in to allow the task to run. It dosnt say if its right or wrong so you dont have any idea. It just dosnt run
I tried...
but it still dosen't work.......
dont' know why.......
I'm new to iCal, first of all, will this work for ObjectDock? 2nd, the one I downloaded came with no readme file, how am I supose to get this to work? I put everything in YzDock\icons and put the ical.exe on the dock and clicked on it but it doesn't update. Am I am missing?
if u go2 the ical thread for OD their was a tut posted that alot of ppl were happy with, but since i originally wrote this scipt for YzDock and havent tried it with OD, i can be 2 sure how well it works.
if u need any help ill giv u a hand (after all i wrote it), but i figure its pretty self explanitory.
-The Unknown
well my problem is that i used the ical.bat but the docklet still doesn't update
i used a different location for my dock , i double click the ical app the update screen shows up then
i get an error saying "Windows can't C:/documents "
????
so if anyone knows whats going on lemme know

alright, could u please post the entire script with an indicator for which line is giving u the error?
i believe i know whats going wrong, but i need to see the script to b sure.
-The Unknown
heres the script i used, I think this is what you want
---------------------------------------------------------------------
--->
@echo off
if [%min%]==[1] goto 2
set min=1
start /min ical.bat
goto end
:2
set min=
cls
taskkill /F /IM YzDock.exe
attrib -r -a -s -h %temp%\date.txt
del %temp%\date.txt
attrib -r -a -s -h ical.png
del ical.png
set png=
echo.|date|find "current">%temp%\date.txt
FOR /F "tokens=6 " %%i in (%temp%\date.txt) do @echo %%i>%temp%\date.txt
FOR /F "tokens=1,2,3* delims=/" %%i in (%temp%\date.txt) do set png=%%i_%%j
copy images\%png%.png ical.png
start ..\..\YzDock.exe
del %temp%\date.txt
cd ..\..
echo.|type itemlist.ini|find /I "ical\iCal.png"
if errorlevel 1 echo iCal type.app %CD%\icons\iCal\iCal.exe - %CD%\icons\iCal\ show.normal ical\iCal.png>>itemlist.ini
:end
exit
<---
----------------------------------------------------------------------
i dunno which line is giving me the error but 2 things happens
1. a command prompt pops up saying it "the system cannot find the path specified"
"the system cannot find the file specified "
"The syntax of the command is incorrect"
2. almost instantly this pops up" windows cannot find C:\Documents, make sure you typed the filename correctly or search for the filename."
i tried looking through the code to see If there was anything i could change and i didn't find any
and i was using your version of Ical.bat
i dunno hopefully now you can help me out
thanks unknown
this app sounds great, but the link to download it wont work. Can somebody repost it or email it to me at elpato488@yahoo.com? thanks 
Go the beginning of the thread and follow the original DT2 Link that was provided...when you get to the DT2 thread---->Go to Page 4...there is a (mirror) link to iCal_docklet.rar file (0.99kb).
It was kindly provided by struddie...
I know that it works because I D/L it (5) minutes ago...now I just have to see (after reviewing 10 + pages in both forums, if I can get this to run properly! 
Aqua-Soft Forums