Adding cool icon to binary windows file

36 views
Skip to first unread message

tal

unread,
Jan 13, 2011, 7:46:02 PM1/13/11
to TTime
why not add this cool icon to binary windows ttime?

<a href="http://ttime.googlegroups.com/web/ttime.png?
gda=nVM6YzsAAADw7xOnCJcxcLRI1vRpLeqz0IDVc8wAl2c2_Wepxkv9KCYIC47CfFM5-4p4Vl7Qq0IGRdr3QrylPkw2aRbXD_gF?">
cool icon
</a>

and what the different between 0.9.1 and 0.9.3?
why you don't make 0.9.3 version stable realse?

thank you for this project! :]

Ohad Lutzky

unread,
Jan 14, 2011, 2:07:06 AM1/14/11
to tt...@googlegroups.com
Because there is no "Windows Binary File". It's a batch file. One good solution would be to have it create a Start Menu link with the icon. If you can code it, send a patch.


--
You received this message because you are subscribed to the Google Groups "TTime" group.
To post to this group, send email to tt...@googlegroups.com.
To unsubscribe from this group, send email to ttime+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ttime?hl=en.




--
Man is the only animal that laughs and weeps, for he is the only animal that is struck with the difference between what things are and what they ought to be.
 - William Hazlitt

Ohad Lutzky

Boaz Tirosh

unread,
Jan 14, 2011, 4:03:43 AM1/14/11
to TTime
the problem is you need to run this as administrator,
except this, it is rather simple..:
xxmklink %%systemroot%%\ProgramData\Microsoft\Windows\Start Menu
\Programs\TTime.lnk ttime.bat . "ttime scheduele for Technion
students" 3 ttime.ico

and you can find xxmklink in here:
http://www.xxcopy.com/download/xxmklink.zip

i just wrote it as an example, the full syntax for xxmklink is:

xxmklink spath opath [ arg [ wdir [ desc [ mode [ icon[:n] ]]]]]
[switches...]

where spath path of the shortcut (.lnk added as needed)
opath path of the object represented by the shortcut
arg argument string (use quotes with space, see below)
wdir path of the working directory (for "Start in")
desc description string (shown in Shosrtcut's
Properties)
mode display mode (1:Normal [default], 3:Maximized,
7:Minimized)
icon[:n] icon file [with optional icon index value n]

Currently, the following switches are supported

/p prompts before action
/q no output when successful (quiet)

note that if you want to do this without this freeware, the command
for it in windows (xp and newer) will be "mklink", but then i afraid
you cannot add icon.

also the directory for the start menu is different from version to
version.

good luck tal :)

B.

Tzafrir Rehan

unread,
Jan 14, 2011, 5:34:56 AM1/14/11
to tt...@googlegroups.com

You can have an .exe call system("ttime.bat").

Ugly, but has an icon.

On Jan 14, 2011 11:38 AM, "Boaz Tirosh" <tiros...@gmail.com> wrote:

Ohad Lutzky

unread,
Jan 14, 2011, 8:00:49 AM1/14/11
to tt...@googlegroups.com
I don't like it. The proper solution is to create an installer which will create a link.

--
You received this message because you are subscribed to the Google Groups "TTime" group.
To post to this group, send email to tt...@googlegroups.com.
To unsubscribe from this group, send email to ttime+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ttime?hl=en.
Reply all
Reply to author
Forward
0 new messages