Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Link To Create Desktop Shortcut?
kvarnerexpress
post 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.

Notice from Johnny:
Use a more descriptive topic title next time.


This post has been edited by Johnny: Aug 1 2005, 08:18 AM
Go to the top of the page
 
+Quote Post
cragllo
post 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...
Go to the top of the page
 
+Quote Post
beeseven
post 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.

Notice from KuBi:
Edit as per requested.


This post has been edited by KuBi: Aug 4 2005, 01:40 AM
Go to the top of the page
 
+Quote Post
cragllo
post 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
Go to the top of the page
 
+Quote Post
electriic ink
post Aug 4 2005, 12:51 PM
Post #5


Incest is a game the whole family can play.
Group Icon

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 smile.gif Just read Command Prompt help guide and now I'm 90% sure it will.

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.



Go to the top of the page
 
+Quote Post
alexia
post 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 wink.gif Its not hard , cool.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Table/cell Link?(10)
  2. A Good Space For Learn Html(5)
  3. Link Colour(5)
  4. Dropdown Menus Links(3)
  5. Making A Refresh Link On Your Website.(16)
  6. Populating A Form From A Link(5)
  7. Keyboard Shortcut For Links In Html?(8)
  8. Refresh Main Window By Clicking Link In Popup?(2)
  9. Creating Link In Html - Help Me With This!(5)


 



- Lo-Fi Version Time is now: 23rd November 2008 - 12:28 AM