473,473 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Desktop Shortcut

Hi.

I'm wondering, can I make desktop shortchut
through Java code.
Thanks.
Warm Regards
Darko Topolsek
Dec 20 '05 #1
2 6238
"Darko Topolsek" <dt******@email.t-com.hr> wrote in message
news:do**********@ss405.t-com.hr...
Hi.

I'm wondering, can I make desktop shortchut
through Java code.
Thanks.


Platform dependent. On operating systems with no concept of "shortcuts"
or "desktop", you obviously can't.

On all platforms I know of which do, these things are implemented by the
filesystem, so you'd need to have write-access to the file system (not a
problem for applications, but if you're writing an applet, you may need to
sign it).

What you do then, again depends on the platform. If the "shortcuts" are
implemented via normal files (as on Windows), you need to know the file
format for "shortcuts", and create a file in the appropriate format.

- Oliver
Dec 23 '05 #2
Hi Oliver and thanks for the advice.

Warm regards.
Darko Topolsek
programmer

"Oliver Wong" <ow***@castortech.com> wrote in message
news:5JXqf.12557$m05.6253@clgrps12...
"Darko Topolsek" <dt******@email.t-com.hr> wrote in message
news:do**********@ss405.t-com.hr...
Hi.

I'm wondering, can I make desktop shortchut
through Java code.
Thanks.


Platform dependent. On operating systems with no concept of "shortcuts"
or "desktop", you obviously can't.

On all platforms I know of which do, these things are implemented by
the filesystem, so you'd need to have write-access to the file system (not
a problem for applications, but if you're writing an applet, you may need
to sign it).

What you do then, again depends on the platform. If the "shortcuts" are
implemented via normal files (as on Windows), you need to know the file
format for "shortcuts", and create a file in the appropriate format.

- Oliver

Dec 25 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Eskimo Joe | last post by:
I am trying to create a desktop icon using VB6. is this possible? -p
2
by: Top Gun | last post by:
I am trying to get the output from a setup project to place an entry on the menu plus a shortcut on the option, but setting the property's in User's Desktop and User's Programs Meny to true doesn't...
5
by: DraguVaso | last post by:
Hi, I want my appliation to Run a Shortcut on my Desktop. This should be done regardless the fact if the Shortcut is in the All Users\Desktop or MyProfile\Desktop and regardless the version of...
2
by: | last post by:
When I first deployed my project, I set up the File System>User's Desktop to display a shortcut to MyProgam.exe When install completed from setup.exe the shortcut was there, and selecting it...
3
by: Michael D. Murphy | last post by:
Hi, I am searching for a way to creat desktop shortcuts when running the setup files that were created within a VB solution using the setup wizard. Thanks, Michael
7
by: GrandpaB | last post by:
I would appreciate assistance learning how to create a Desktop shortcut in my setup project. In the left pane of the Setup/File System window I right-clicked User's Desktop. From the contex...
1
by: Mike L | last post by:
How do I set the publish wizard to add a shortcut to the client's desktop?
0
by: peter.bittner | last post by:
I have developed a Windows application in Visual Studio .NET 2003 and created a Setup project for it. In the File System Editor I have added a shortcut to the User's Desktop folder to point to the...
3
by: thi | last post by:
Hi, How do i create an application shortcut on desktop programmically in C#? I have done some shortcut coding before in visual basic 6 using windows scripting host but later found out that...
2
by: urrahul | last post by:
Hi All, Iam using the following JavaScript to create desktop shortcut function createShortcut() { if (ActiveXObject) { // Create desktop shortcut WshShell = new ActiveXObject(...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.