473,320 Members | 1,732 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Create desktop shortcut

1
Dear all,
I want to create a desktop shortcut using this code

Expand|Select|Wrap|Line Numbers
  1. function MakeShortcut() {
  2.  
  3. var WshShell = new ActiveXObject("WScript.Shell");
  4. strDesktop = WshShell.SpecialFolders("Desktop");
  5. var oUrlLink = WshShell.CreateShortcut(strDesktop + "\Link to Help Page.url");
  6. oUrlLink.TargetPath = "http://www.someurl.com";
  7. oUrlLink.Save();
  8. }
but the problem the I must to Enable ActiveX in IE. and this shortcut must be done on about 1000 pc's and we don't have domain to enable it form one place, so is there any way to do the shortcut without enabling ActiveX .
but please don't say to do it manually
Oct 13 '07 #1
1 7550
gits
5,390 Expert Mod 4TB
hi ...

welcome to TSDN ...

there is no other way i think ... and it only works with IE ... because ActiveX is IE-specific ... and as you said: it has to be enabled and hopefully the security settings are no problem ...

kind regards
Oct 15 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Eskimo Joe | last post by:
I am trying to create a desktop icon using VB6. is this possible? -p
1
by: Tom | last post by:
I created an msi using the Setup Wizard, but don't seem to be able to create a shortcut to the applicaton on the desktop (or prompt for one) or the menu. Also, I would like to add an "uninstall"...
2
by: Mark | last post by:
I have a shortcut on the desktop in my application that I want a user to drop a file on and then have the application run. The shortcut that installs with the application does not look like you...
4
by: Nijazi Halimaji | last post by:
Hi When I start my Application the first time i like to create a shortcut on the desktop. I have managed it to create the shortcut; but with VB Script Code CreateObject("Shell..."). Is there...
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...
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...
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(...
5
by: Linds | last post by:
I have a report within my access database that I would like to have a shortcut on my desktop that could bring up that report. In other words, now I have to double click on the database, then go...
2
by: hermithead | last post by:
Hi ~ how would I go about entering a desktop shortcut into a HTML page as a link? For example if I had a shortcut to a program on my desktop that I wanted to include on a Intranet page how would...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.