//some 3rd party need geo

Creating Windows Shortcuts to MS-DOS program

  CLONNEN 10:18 26 Jun 05

I have managed to write some code which creates a shortcut in the Start Menu Accessories folder but when I click on it the MSDOS window runs the batch file and then terminates the session. I want the Command Line in the Shortcut Properties to say C:\WINDOWS\COMMAND.COM and have the Batch file line say C:\VDMSOUND\DOSDRV.BAT

At the moment the DOSDRV.BAT line is appearing in the command line in the Shortcut Properties. How do I edit the code to get what I want?

Set WSHShell = WScript.CreateObject("WScript.Shell")
StartMenuPath = WSHShell.SpecialFolders("StartMenu")
Set MyShortcut = WSHShell.CreateShortcut(StartMenuPath & "\Programs\Accessories" & "\VDMSound.lnk")
MyShortcut.TargetPath = "C:\VDMSOUND\DOSDRV.BAT"
MyShortcut.WorkingDirectory = "C:\VDMSound"
MyShortcut.Arguments = ""
MyShortcut.Description = "VDMSound for Windows 9x"
MyShortcut.HotKey = "ALT+CTRL+V"
MyShortcut.WindowStyle = 4
MyShortcut.IconLocation = "C:\WINDOWS\SYSTEM\PIFMGR.DLL, 0"

  CLONNEN 10:56 26 Jun 05

This is VBscript code by the way. Can anyone help me?

This thread is now locked and can not be replied to.

What is Google Allo? What is Google Duo? Google Allo UK release date rumours and features: Google…

1995-2015: How technology has changed the world in 20 years

These clever designs help visualise a complex intelligence tool

iOS 10 troubleshooting tips: Simple fixes for the most common iOS 10 problems, from network…