|
|
|
|
![]() ![]() |
Jul 31 2005, 10:56 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 407 Joined: 13-December 04 Member No.: 2,696 |
Is there a way to make a link that actually creates a desktop shortcut? I have a page that gives links to files on our intranet but I know of people who try and make shortcuts for these files. It would be nice if I could put a link next to the link for the file that would make a shortcut.
This post has been edited by Johnny: Aug 1 2005, 08:18 AM |
|
|
|
Aug 1 2005, 11:52 AM
Post
#2
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 933 Joined: 24-August 04 Member No.: 892 myCENT:ZERO |
Explain more what you need, your not making much sense...
|
|
|
|
Aug 4 2005, 01:29 AM
Post
#3
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 629 Joined: 26-February 05 Member No.: 3,995 |
I don't think it would be possible. You'd have to figure out the path to the desktop. On Windows this is C:\Documents and Settings\%USERNAME%\Desktop, I don't remember Linux's, and something else on Mac. You can get the OS with PHP's $_SERVER['HTTP_USER_AGENT'], but I don't think it's possible to write a file to the desktop.
You could always just tell people to drag their link to the desktop. This post has been edited by KuBi: Aug 4 2005, 01:40 AM |
|
|
|
Aug 4 2005, 12:24 PM
Post
#4
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 933 Joined: 24-August 04 Member No.: 892 myCENT:ZERO |
Its also different on different windows versions different on ME, 200/NT, XP
|
|
|
|
Aug 4 2005, 12:51 PM
Post
#5
|
|
|
Incest is a game the whole family can play. ![]() Group: [MODERATOR] Posts: 1,234 Joined: 11-February 05 From: Heaven Member No.: 3,709 myCENT:15.88 |
I'm sure there's a php script out there which could get the operating system of a user and I'm sure you could use fopen(), fwrite(), and fclose() to create the shortcut. I'm not sure it that's actually works, but you put the following code into notepad:
CODE start http://mysite.somehost.com/ and save it as an open.exe and run it and if memory serves this should act as a shortcut. I'm not promising that it will work, it's just something I remember reading QUOTE(beeseven) C:\Documents and Settings\%USERNAME%\Desktop It's easier than that to find out the path to a Windows user's desktop. It's %USERPROFILE%\Desktop. This takes out the trouble of finding out the user's username which would probably require ActiveX. |
|
|
|
Aug 5 2005, 04:03 PM
Post
#6
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 310 Joined: 9-February 05 From: Italian Member No.: 3,677 |
I Think Build key for acess to web on desktop is good Idea
I build one project with VB and i make it Just build one (.url) file in vb and then put your link on this file : QUOTE [DEFAULT] URL=Your site Your . Put Url Modified=0007A9F3A2F7C40101 And then Put this file on Your site for user downloads But afther You must write one String to find Desktop address on user systems |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 23rd November 2008 - 12:28 AM |