TechTalk Compiles All the Android News You Need in One App

If you’re as obsessed with mobile devices as the vast majority of our forum … more

Android App Review: Google Inbox to Improve Your Life – XDA TV

Recently, Google+ exploded with the announcement of Google Inbox, as … more

Damp the LG G3 Thermal Throttling

As our mobile devices grow thinner and more powerfulwith each passing generation, it’s inevitable … more

Google Play Developer Distribution Agreement Due Tomorrow

Every once in a while, Google updates theGoogle PlayDeveloper Distribution … more
Post Reply

[Guide] How to create .LNK files and use parameters

OP bbobeckyj

7th March 2009, 10:12 AM   |  #1  
bbobeckyj's Avatar
OP Senior Member
Flag dorset
Thanks Meter: 6
 
959 posts
Join Date:Joined: Aug 2006
More
Due to the increasing amount of requests bulking up other threads, regarding how to make and use parameters I'm starting this thread with all the info at the begining, and I'll link it in my signature.
I make no claim to have discovered all of them.
I hereby present my collection gathered (copy & paste mostly) from this and other sites.

How to create .LNK files and use parameters

HOW TO CREATE SHORTCUTS ON YOUR PPC, NOT ON THE PC AND THEN TRANSFER THEM-

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' or '#' followed by the address , such as '#tmail.exe' (for example) then rename the file extension to .LNK In my tests a number before the # is NOT required.

---------------------------------------------------------------------------------------
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', or use 3rd party soft such as vijay555's
Edit: Quicker dialing shortcut found and added, still requires you to press 'Talk' after you run the .lnk though
---------------------------------------------------------------------------------------
Available parameters for tmail.exe (depending on the service used) are- "tmail.exe" -new ""

"tmail.exe" -service ""
"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
Settings>Personal>Password>Hint = 22#ctlpnl cplmain.cpl,1,1
Settings>Personal>Owner Information>Identification = 20#ctlpnl cplmain.cpl,2
Settings>Personal>Owner Information>Notes = 22#ctlpnl cplmain.cpl,2,1
Settings>Personal>Owner Information>Options = 22#ctlpnl cplmain.cpl,2,2
Settings>System>Power>Main = 20#ctlpnl cplmain.cpl,3
Settings>System>Memory>Main = 20#ctlpnl cplmain.cpl,4
Settings>System>Memory>Storage Card = 22#ctlpnl cplmain.cpl,4,1
Settings>System>Memory>Running Programs = 22#ctlpnl cplmain.cpl,4,2
Settings>System>About>Version = 20#ctlpnl cplmain.cpl,5
Settings>System>About>Device ID = 22#ctlpnl cplmain.cpl,5,1
Settings>System>About>Copyrights = 22#ctlpnl cplmain.cpl,5,2
Settings>System>Backlight>Brightness = 20#ctlpnl cplmain.cpl,6
Settings>System>Backlight>Battery power= 20#ctlpnl cplmain.cpl,6,1
Settings>System>Backlight>External power = 20#ctlpnl cplmain.cpl,6,2
Settings>System>Screen>General = 20#ctlpnl cplmain.cpl,7
Settings>System>Screen>Clear Type = 22#ctlpnl cplmain.cpl,7,1
Settings>System>Screen>Text Size = 22#ctlpnl cplmain.cpl,7,2
Settings>Personal>Input>Input Method = 20#ctlpnl cplmain.cpl,8
Settings>Personal>Input>Word Completion = 22#ctlpnl cplmain.cpl,8,1
Settings>Personal>Input>Options = 22#ctlpnl cplmain.cpl,8,2
Settings>Personal>Sounds & Notifications>Sounds = 20#ctlpnl cplmain.cpl,9
Settings>Personal>Sounds & Notifications>Notifications = 22#ctlpnl cplmain.cpl,9,1
Settings>System>Remove Programs = 21#ctlpnl cplmain.cpl,10
Settings>Personal>Menus>Start Menu = 21#ctlpnl cplmain.cpl,11
Settings>Personal>Menus>New Menu = 23#ctlpnl cplmain.cpl,11,1
Settings>Personal>Buttons>Program Buttons = 21#ctlpnl cplmain.cpl,12
Settings>Personal>Buttons>Up/Down Controls = 23#ctlpnl cplmain.cpl,12,1
Settings>Personal>Today>Appearance = 21#ctlpnl cplmain.cpl,13
Settings>Personal>Today>Items = 23#ctlpnl cplmain.cpl,13,1
Settings>Connections>Beam = 21#ctlpnl cplmain.cpl,15
Settings>System>Clock & Alarms>Time = 21#ctlpnl cplmain.cpl,16
Settings>System>Clock & Alarms>Alarms = 23#ctlpnl cplmain.cpl,16,2
Settings>Connections>Network Cards = 21#ctlpnl cplmain.cpl,17
Settings>System>Regional Settings>Region = 21#ctlpnl cplmain.cpl,18
Settings>System>Regional Settings>Number = 23#ctlpnl cplmain.cpl,18,1
Settings>System>Regional Settings>Currency = 23#ctlpnl cplmain.cpl,18,2
Settings>System>Regional Settings>Time = 23#ctlpnl cplmain.cpl,18,3
Settings>System>Regional Settings>Date = 23#ctlpnl cplmain.cpl,18,4
Settings>Connections>Connections>Task = 21#ctlpnl cplmain.cpl,19
Settings>Connections>Connection>Advanced = 23#ctlpnl cplmain.cpl,19,1
Settings>Personal>Phone>Phone = 21#ctlpnl cplmain.cpl,20
Settings>Personal>Phone>Services = 23#ctlpnl cplmain.cpl,20,1
Settings>Personal>Phone>Network = 23#ctlpnl cplmain.cpl,20,2
Settings>Personal>Phone>More = 23#ctlpnl cplmain.cpl,20,3
Settings>System>Certificates>Personal = 21#ctlpnl cplmain.cpl,22
Settings>System>Certificates>Root = 23#ctlpnl cplmain.cpl,22,1
Settings>Connections>Bluetooth>Mode = 21#ctlpnl cplmain.cpl,23
Settings>Connections>Bluetooth>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
---------------------------------------------------------------------------------------
To Dial a number: "\windows\cprog.exe" -n -url tel:+1234567890
---------------------------------------------------------------------------------------
camera
"\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
"\windows\camera.exe" -t =picture theme mode
"\windows\camera.exe" -b =burst mode
"\windows\camera.exe" -g =GPS photo mode
"\windows\camera.exe" -s =Sport mode
---------------------------------------------------------------------------------------

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.
---------------------------------------------------------------------------------------

To change the icon of the .lnk file.
Useful if you have several mail .lnks and would like to differentiate between, for example, Google and Hotmail. Or if you want to assign icons to .lnks for Mortscripts etc.
Icon sources can be .DLLs or .EXEs, not picture files, such as .PNGs. View the icons within these files using RViewer.

Change the file extension of the .lnk file to .txt, open it, you will see the address for the program, or what ever it is that you have linked to eg "program files\my program.exe" you need to append a "?" followed by the address of the icon you want to use, then ",-" then the number of the icon within the icon file you are using, the default icon is "000".

You will end up with "program files\my program.exe",?example.exe,-000


If you have any suggestions or corrections please post and I'll add them or edit this post.
Wiki'd
Attached Files
File Type: zip folderview.zip - [Click for QR Code] (63.3 KB, 554 views)
File Type: zip settings.zip - [Click for QR Code] (36.3 KB, 610 views)
File Type: zip PPC Control Panel Shortcuts.zip - [Click for QR Code] (9.3 KB, 606 views)
Last edited by bbobeckyj; 8th November 2010 at 03:27 PM.
The Following User Says Thank You to bbobeckyj For This Useful Post: [ View ]
7th March 2009, 10:12 AM   |  #2  
bbobeckyj's Avatar
OP Senior Member
Flag dorset
Thanks Meter: 6
 
959 posts
Join Date:Joined: Aug 2006
More
for future use............
7th March 2009, 10:28 AM   |  #3  
bbobeckyj's Avatar
OP Senior Member
Flag dorset
Thanks Meter: 6
 
959 posts
Join Date:Joined: Aug 2006
More
for future use............
7th March 2009, 10:34 AM   |  #4  
Ather's Avatar
Retired Senior Moderator
Flag East Riffa
Thanks Meter: 126
 
3,546 posts
Join Date:Joined: May 2007
More
and how is it diff than : http://forum.xda-developers.com/showthread.php?t=340974
7th March 2009, 10:40 AM   |  #5  
bbobeckyj's Avatar
OP Senior Member
Flag dorset
Thanks Meter: 6
 
959 posts
Join Date:Joined: Aug 2006
More
Quote:
Originally Posted by ather90

and how is it diff than : http://forum.xda-developers.com/showthread.php?t=340974

Well that's a 20+ page thread of mostly questions. I can't easily link to it and say look at x, y or z page for the answer can I?
Also as is obvious by the posts in that thread and many others (my reason for this thread) is that most people don't bother reading the thread for the answer, here I have tried to put them all in the first post not over 258.

Secondly, my intention is to improve this thread by adding other 'noob' questions when I find them or think of them, to the first posts, for example how often do you see- 'how to install a .cab file?'? etc.
Basically add all the answers I keep writing in threads, even my signature was made so I could just say 'click it for what you want' (requests I used to read all the time).
Hopefully that answers your question?
Last edited by bbobeckyj; 7th March 2009 at 10:43 AM.
7th March 2009, 11:55 AM   |  #6  
Ather's Avatar
Retired Senior Moderator
Flag East Riffa
Thanks Meter: 126
 
3,546 posts
Join Date:Joined: May 2007
More
hehe thats ok then
7th March 2009, 12:10 PM   |  #7  
NeoS's Avatar
Senior Moderator / Recognized Developer - There is no N00b...
Flag Somewhere in NL
Thanks Meter: 844
 
3,326 posts
Join Date:Joined: Jan 2008
Donate to Me
Wiki this m8. This is great wiki material.
7th March 2009, 08:59 PM   |  #8  
bbobeckyj's Avatar
OP Senior Member
Flag dorset
Thanks Meter: 6
 
959 posts
Join Date:Joined: Aug 2006
More
Quote:
Originally Posted by NeoS2007

Wiki this m8. This is great wiki material.

done
http://wiki.xda-developers.com/index...sAndParameters
3rd May 2009, 02:57 AM   |  #9  
twisted's Avatar
Senior Member
Flag Sharjah, UAE
Thanks Meter: 28
 
273 posts
Join Date:Joined: Mar 2006
More
what's the link for the setting page with 3 tabs (personal,system,connections)?
can't find any info for that link.
thanks in advance.

regards,

twisted
3rd May 2009, 11:07 AM   |  #10  
bbobeckyj's Avatar
OP Senior Member
Flag dorset
Thanks Meter: 6
 
959 posts
Join Date:Joined: Aug 2006
More
Quote:
Originally Posted by twisted

what's the link for the setting page with 3 tabs (personal,system,connections)?
can't find any info for that link.

There is no known .lnk to the settings pages.

I'll try to upload 2 .exes which simulate it.
Attached Files
File Type: zip settings.zip - [Click for QR Code] (36.6 KB, 159 views)

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes