|
-
February 17th, 2008, 06:43 PM
#1
Using DOS to create a shortcut to a file
does anyone know how to create a shortcut to a file using DOS commands
I have this ==> c:\folder1\file.txt
I need this ==> c:\folder2\file.lnk
This would really help me out a lot
Thanks
Steve T.
-
February 17th, 2008, 08:12 PM
#2
And are trying to get the .lnk to run? Or maybe you are using the wrong extension there. How about program you are runing?
-
February 17th, 2008, 08:13 PM
#3
-
February 17th, 2008, 09:47 PM
#4
Boy, that was a fast response - thank you.
I think there is some mixup, the extension for a shortcut, LNK not INK
Shorcuts don't run - my nose sometimes run - my INK runs when I use a fountain pen
-
February 18th, 2008, 01:01 AM
#5
Shortcut or "link" to the original file; similar to an alias on the Macintosh platform; may be created in Windows by right-clicking a file and selecting "Create Shortcut."
If the LNK file is a shortcut to a program (.EXE file), it can contain attributes to define how the program runs; to set the attributes, right-click the shortcut file, select "Properties," and modify the Target Field. LNK file icons typically include a small curled arrow to indicate that the file points to another location.
Just call the actual program.
-
February 18th, 2008, 06:35 AM
#6
-
February 18th, 2008, 11:56 AM
#7
Doc to the rescue, Thanks.
-
February 18th, 2008, 07:11 PM
#8
Looks like this is just what I'm looking for - thanks for your fast response - I'll give it a shot tomorrow and let you know - I'm very optimistic
Thanks again
Steve T
-
February 19th, 2008, 05:32 AM
#9
You're welcome. 
Note that I've never tried Microsoft's "shortcut.exe" on Windows XP or Vista. It does work in Windows 9x/Me.
-
February 19th, 2008, 11:24 AM
#10
Update,
I - STFW - found shortcut.exe, then I - RTFM - found how it works
TA DA victory dance!
Thanks to all
FYI - shortcut.exe is documented to work under XP (which is what I have, and can testify that it does) but not documented to work under Vista.
Steve T
-
February 20th, 2008, 05:20 AM
#11
Good to hear you got it working. Thanks for posting back.
-
February 20th, 2008, 04:26 PM
#12
Welcome to the site Steve!
Glad to have helped ya so quickly
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|