answersLogoWhite

0

Here is how to open a Windows Shortcut file Using VB6. This is a safe and documented method.

Create a New VB6 Project

In the Project References Add "Windows Script Host Object Model"

Place a Command Button on the form named CommandButton1

Click on CommandButton1

Private Sub CommandButton1_Click()

Dim Oshell As New WshShell

Dim Osh As WshShortcut

Dim Fn As String

Dim Otarget As String

'Set the path and file name of the shortcut

Fn = "C:\shortcut path\shortcut filename.lnk"

'

' If the shortcut file is existing, it will open the existing file

'

Set Osh = Oshell.CreateShortcut(Fn)

Otarget = Osh.TargetPath

'

' Using the Watch window see the other properties of Osh object

'

End Sub

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

How to make a VLC shortcut to open 'directshow' webcam?

To create a VLC shortcut for opening a DirectShow webcam, first right-click on the VLC shortcut icon on your desktop and select "Properties." In the Target field, add the following after the existing path: --v4l2-dev /dev/video0 (replace /dev/video0 with the appropriate device path for your webcam). Click "OK" to save the changes. Now, clicking this shortcut will directly open the webcam in VLC.


How do you edit the command-line parameter of a game?

To edit the command-line parameters of a game, first locate the game's shortcut on your desktop or in the installation folder. Right-click the shortcut and select "Properties." In the "Target" field of the Shortcut tab, add your desired command-line parameters after the existing text, ensuring to include a space before each new parameter. Click "OK" to save your changes, and then launch the game using that shortcut.


How do you edit the 'target' box in a shortcut?

Right-click the icon Select properties There will be a text box next to the word "target." Edit away!


How do you play Halo in a window?

Right-click the shortcut, select "Properties." Click the shortcut tab. Under "Target", add -window on the end, inside the quotation marks.


Can you open a shortcut file?

Assuming you are talking about Microsoft windows it is possible to right click on the shortcut and select properties, this will show you what the shortcut points at, and the directory it expects to be running in. If you are talking about shortcuts on a unix box, enter the 'ls -l' command and the shortcut will be expanded so you can see the target


How do you put FSX into Kiosk Mode?

To put Microsoft Flight Simulator X (FSX) into Kiosk Mode, you need to create a shortcut for the application and modify its properties. Right-click the shortcut, select "Properties," and in the "Target" field, add “-kiosk” at the end of the existing line. This will launch FSX in Kiosk Mode, which restricts certain functionalities and simplifies the user interface for easier access. Make sure to save the changes and use the modified shortcut to start FSX in Kiosk Mode.


How can you play computer games in a window?

right click on the games shortcut and in the target area ant the end of the target and a space then type -window hope that helps


How you can acces flora editor in spore?

First, crate a shortcut of SporeApp (on your C drive) and put it on your desktop. Right-click it and go to "Shortcut Properties" then "Shortcut". Under "Target" cut and paste this (including the space at the beginning): -state:FloraEditor Open SporeApp to test it.


How can you change shortcut file in to original one?

To change a shortcut file into its original file, you need to locate the original file that the shortcut points to. Right-click the shortcut and select "Properties," then look for the "Target" field, which shows the path to the original file. You can then navigate to that path and access the original file directly. Alternatively, you can create a copy of the original file and place it where you need it.


I lost Minecraft desktop shortcut and I have no idea what all the extensions for the Java Runtime Environment are. What is the Minecraft desktop shortcut target?

You would want to navigate to %appdata%/.minecraft/bin and run minecraft.jar with the Java Runtime Environment.


What key do you hold down while dragging a file from one folder to another that creates a shortcut to the file in the target folder?

Alt


How do you convert a jpg shortcut back a normal jpg file?

You can't. A shortcut file is a completely different file format that basically stores the location of where ever you shortcut-ted and then loads Windows Explorer or a program with that location. If the shortcut still works and you are on a windows computer you could try: 1. Right click on shortcut 2. Copy the Target 3. Go in to Windows Explorer (Start -> My Computer) 4. Paste the Target (may have to double click in W7) 5. Press enter. If the image comes up then delete the image name up until the nearest / or \ then press enter. 6. You'll find your JPG in this folder.