Can LC copy a shortcut to desktop? - Solved
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Can LC copy a shortcut to desktop? - Solved
I have been trying for 2 days now and I am starting to wonder if it is possible for LC to copy a shortcut to desktop?
If anybody has had success in accomplishing this feat, PLEASE let us know how you did it?
Thanks,
David
If anybody has had success in accomplishing this feat, PLEASE let us know how you did it?
Thanks,
David
Last edited by DR White on Thu Dec 12, 2013 12:51 am, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Can LC copy a shortcut to desktop?
In the Dictionary see the "create alias" command and the "specialFolderPath" function.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Can LC copy a shortcut to desktop?
Have you actually done it with LC?
Re: Can LC copy a shortcut to desktop?
Hi David,
looks like reading all answers to your original posting -> carefully, is not a bad idea, right?
Best
Klaus
looks like reading all answers to your original posting -> carefully, is not a bad idea, right?

Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Can LC copy a shortcut to desktop?
A few times. I've written about half a dozen installers in my 15 years with LiveCode.DR White wrote:Have you actually done it with LC?
The more valuable question is: What happened when you tried it using the language elements presented in the first reply here?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Can LC copy a shortcut to desktop?
Richard,
I do not know have knowledge about "create alias" to try it.
Please give example.
At this point, If you can tell me how to copy an ".exe" file to desktop, that would work fine.
Thanks,
David
I do not know have knowledge about "create alias" to try it.
Please give example.
At this point, If you can tell me how to copy an ".exe" file to desktop, that would work fine.
Thanks,
David
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Can LC copy a shortcut to desktop?
What did you find when you looked in the Dictionary for the "creatre alias" command?DR White wrote:I do not know have knowledge about "create alias" to try it.
Please give example.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Can LC copy a shortcut to desktop?
I read the dictionary before.
Not enough info to make code to preform a complete task.
I Learn from examples.
Thank you for your time,
David
Not enough info to make code to preform a complete task.
I Learn from examples.
Thank you for your time,
David
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Can LC copy a shortcut to desktop?
A lot of references to examples have been provided yet none of them have worked for you, so let's try something different: can you post the code you wrote that isn't working?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Can LC copy a shortcut to desktop?
Did you look at the code in the link I posted above, answering the same question in the other thread you started?
Re: Can LC copy a shortcut to desktop?
I need to copy an .exe file from directory c:/David3A/ to DeskTop.
Below is my code, But all I get is an empty icon:
----- Copy file David3A/Books.exe to Desktop ----------------
put specialfolderpath("desktop") & "/Books.exe" into tFile
put url("binfile:" & "/David3A/Books.exe") into url("binfile:" & tFile)
----------------------------------------------------------------------
All I get is an empty icon on my desktop.
Thanks,
David
Below is my code, But all I get is an empty icon:
----- Copy file David3A/Books.exe to Desktop ----------------
put specialfolderpath("desktop") & "/Books.exe" into tFile
put url("binfile:" & "/David3A/Books.exe") into url("binfile:" & tFile)
----------------------------------------------------------------------
All I get is an empty icon on my desktop.
Thanks,
David
Re: Can LC copy a shortcut to desktop?
David,
c:/David3A/
/David3A/
See what is missing at the beginning of the second pathame you used in your script?
Your DESCRIPTION shows the correct and complete pathname!
Best
Klaus
please compare your two pathnames:DR White wrote:I need to copy an .exe file from directory c:/David3A/ to DeskTop.
Below is my code, But all I get is an empty icon:
----- Copy file David3A/Books.exe to Desktop ----------------
put specialfolderpath("desktop") & "/Books.exe" into tFile
put url("binfile:" & "/David3A/Books.exe") into url("binfile:" & tFile)
c:/David3A/
/David3A/
See what is missing at the beginning of the second pathame you used in your script?
Your DESCRIPTION shows the correct and complete pathname!
Best
Klaus
Re: Can LC copy a shortcut to desktop?
Klaus,
I will try adding the "C:" to the second path after work today ( in about 10 hours)
Thanks,
David
I will try adding the "C:" to the second path after work today ( in about 10 hours)
Thanks,
David
Re: Can LC copy a shortcut to desktop?
Don't try, just do it! 
