xda-developers.com
forum.xda-developers.com
device database
wiki.xda-developers.com Wiki HomePage
FAQ | Xanadux

RecentChanges | FindPage | | LikePages | BackLinks

Links And Parameters

How to create .LNK files and use parameters

HOW TO CREATE SHORTCUTS ON YOUR PPC, NOT ON THE PC-

1-Don't use the inbuilt file explorer. use gsfinder, or total commander etc. The inbuilt file explorer can't edit links or show file extensions - if you try to rename something to xxx.LNK, it will really be xxx.lnk.txt (or something)

2: Using the other file explorer, copy and paste a shortcut to ANY file/exe/.lnk you want.

3: Tap & hold on this new shortcut, select 'properties'.

4: in properties, write the address of the program you want the shortcut for. ie- program files\xxx.exe or windows\xxx.exe or ctlpnl cplmain.cpl,5 (the about screen)...

5: Ok/Close the properties, & rename the link to whatever you want leaving .LNK at the end.

THE OTHER METHOD IS-

Again you'll need a different file explorer. Create a .TXT file with the content '#ctlpnl cplmain.cpl,1' (for example) then rename the file extension to .LNK In my tests a number before the # is NOT required.

If you create a .lnk via the properties, the first method, they would be- 'ctlpnl cplmain.cpl,1'. If you create a text file, the second method, the contents of the text file would be- '20#ctlpnl cplmain.cpl,1'


NOTES

When creating using a .txt file the contents must start with a '#', if creating by editing the properties of an existing .lnk you do not need the '#' There are examples below of both methods, if it has a '#' it's the .txt method, if it is in quotes, it is the address as it would need to be in the properties of the .lnk file

It is NOT possible to open a link to the folder view you get by \start menu\programs unless you have folderview.exe in your windows folder, none of my 4 devices have that so I've not tested it. But you can open to folders with file explorer using, for example- "\program files\greensoftware\gsfinder.exe" windows\start menu\programs\games

There is NO shortcut to quickly dial a number, you would need to go through the 'confirm number page' of use 3rd party soft such as vijay555's


Available parameters for tmail.exe (depending on the service used) are- tmail.exe -new ""

"tmail.exe" -service "" (e.g. "MMS" or "ActiveSync" or "SMS" etc)

"tmail.exe" -to ""

"tmail.exe" -subject ""

"tmail.exe" -Body ""

"tmail.exe" -attach ""

"tmail.exe" -open "inbox"

"tmail.exe" -sync or combinations of all such as-

"tmail.exe" -to "N_E_One@gmail.com" -subject "Photos" -Message "Hi, here is the picture" -attach "\my documents\my pictures\1.jpg"


Links for settings:

Settings - Personal

Password Password 20#ctlpnl cplmain.cpl,1
Hint 22#ctlpnl cplmain.cpl,1,1
Owner Information Identification 20#ctlpnl cplmain.cpl,2
Notes 22#ctlpnl cplmain.cpl,2,1
Options 22#ctlpnl cplmain.cpl,2,2
Input Input Method 20#ctlpnl cplmain.cpl,8
Word Completion 22#ctlpnl cplmain.cpl,8,1
Options 22#ctlpnl cplmain.cpl,8,2
Sounds & Notifications Sounds 20#ctlpnl cplmain.cpl,9
Notifications 22#ctlpnl cplmain.cpl,9,1
Menus Start Menu 21#ctlpnl cplmain.cpl,11
New Menu 23#ctlpnl cplmain.cpl,11,1
Buttons Program Buttons 21#ctlpnl cplmain.cpl,12
Up/Down Controls 23#ctlpnl cplmain.cpl,12,1
Today Appearance 21#ctlpnl cplmain.cpl,13
Items 23#ctlpnl cplmain.cpl,13,1
Phone Phone 21#ctlpnl cplmain.cpl,20
Services 23#ctlpnl cplmain.cpl,20,1
Network 23#ctlpnl cplmain.cpl,20,2
More 23#ctlpnl cplmain.cpl,20,3

Settings - System

Power Main 20#ctlpnl cplmain.cpl,3
Memory Main 20#ctlpnl cplmain.cpl,4
Storage Card 22#ctlpnl cplmain.cpl,4,1
Running Programs 22#ctlpnl cplmain.cpl,4,2
About Version 20#ctlpnl cplmain.cpl,5
Device ID 22#ctlpnl cplmain.cpl,5,1
Copyrights 22#ctlpnl cplmain.cpl,5,2
Backlight Brightness 20#ctlpnl cplmain.cpl,6
Battery power 20#ctlpnl cplmain.cpl,6,1
External power 20#ctlpnl cplmain.cpl,6,2
Screen General 20#ctlpnl cplmain.cpl,7
Clear Type 22#ctlpnl cplmain.cpl,7,1
Text Size 22#ctlpnl cplmain.cpl,7,2
Remove Programs Main 21#ctlpnl cplmain.cpl,10
Clock & Alarms Time 21#ctlpnl cplmain.cpl,16
Alarms 23#ctlpnl cplmain.cpl,16,2
Regional Settings Region 21#ctlpnl cplmain.cpl,18
Number 23#ctlpnl cplmain.cpl,18,1
Currency 23#ctlpnl cplmain.cpl,18,2
Time 23#ctlpnl cplmain.cpl,18,3
Date 23#ctlpnl cplmain.cpl,18,4
Certificates Personal 21#ctlpnl cplmain.cpl,22
Root 23#ctlpnl cplmain.cpl,22,1

Settings - Connections

Beam Main 21#ctlpnl cplmain.cpl,15
Network Cards Main 21#ctlpnl cplmain.cpl,17
Connections Task 21#ctlpnl cplmain.cpl,19
Advanced 23#ctlpnl cplmain.cpl,19,1
Bluetooth Mode 21#ctlpnl cplmain.cpl,23
Devices 23#ctlpnl cplmain.cpl,23,1

Calendar agenda view 21#:MSCALENDAR -va?outres.dll,-100002

Calendar day view 21#:MSCALENDAR -vd?outres.dll,-100002

Calendar month view 21#:MSCALENDAR -vm?outres.dll,-100002

Calendar week view 21#:MSCALENDAR -vw?outres.dll,-100002

Calendar year view 21#:MSCALENDAR -vy?outres.dll,-100002

Calendar must be already running in the background for these to work


New Task: "poutlook.exe" tasks -new

New Note: "notes.exe" -n

New Contact: "poutlook.exe" contacts -new

New Appointment: "poutlook.exe" calendar -new


contacts...

23#"\Windows\poutlook.exe" contacts


"\windows\camera.exe" -i =photo mode

"\windows\camera.exe" -v =video mode

"\windows\camera.exe" -p =contact photo mode

"\windows\camera.exe" -m =mms video mode

"\Windows\HTCAlbum.exe" -mode:camera -type:image

"\Windows\HTCAlbum.exe" -mode:camera -type:video


You will also have ?PowerOffWarning.exe (long power press key) (and maybe others) in your windows folder renaming another .exe (such as device lock) and pasting into windows will result in the long press of the power key running that program instead of turning off your device.

how and why shortcuts are created in a nice step by step tutorial: http://msdn.microsoft.com/en-us/library/ms838639.aspx

see also

  • Create links to the programs in your Settings menu

Last edited on May 27, 2009 10:30 am.


Edit | PageHistory | Diff | PageInfo
Login
User Name: Password:
Remember Me?