Article View: borland.public.jbuilder.java.language
Article #7284Re: how to add an item to the start menu
From: Nabin Thomas
Date: Sat, 30 Jun 2001 06:12
Date: Sat, 30 Jun 2001 06:12
36 lines
1963 bytes
1963 bytes
If you have windows scripting host installed then it would be easy to
create a VBscript file that that creates a shortcut and excecute this
from java program. I think WScript.Shell Object has a method to create
shortcuts. And you have some sample scripts for creating these shortcuts
Checkout the files
1) c:\windows\SAMPLES\WSH\shortcut.js
and
2) c:\windows\SAMPLES\WSH\shortcut.vbs
They creates a shortcut for notepad on your desktop.
Just create the shorcuts in the startmenu folder to add an item to the
menu
"Calvin R. Smith" wrote:
> How do I add an item to the start menu of windows?
--
***********************************
***************************************************
******************* Web Card **********************
***************************************************
Name : Nabin Thomas
e-mail : nabinthomas@hotmail.com
Web : http://nabin.topcities.com
Feel free to contact me thru e-mail or MSN Mssenger
if required but DONOT SPAM
***************************************************
***********************************
Technical Details
Message-ID:
<3B3D6DE2.C91349A0@hotmail.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!howland.erols.net!newsfeed.wirehub.nl!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnewsReferences:
<3b379c21_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,64d196f6708e198e X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-29 23:56:33 PST Message-ID: <3B3D6DE2.C91349A0@hotmail.com> Date: Sat, 30 Jun 2001 11:42:50 +0530 From: Nabin Thomas <nabinthomas@hotmail.com> X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: how to add an item to the start menu References: <3b379c21_1@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 202.9.167.50 X-Trace: dnews 993883955 202.9.167.50 (29 Jun 2001 23:52:35 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!howland.erols.net!newsfeed.wirehub.nl!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews