|
-
Aug 29th, 2000, 09:55 PM
#1
Thread Starter
Addicted Member
I'm having trouble with Long File Names being changed to the short MS-DOS filename when supplied as a Command Line Parameter. I use the "Command" function to retrieve the command line parameter and I've got my application set up in the "SEND TO" context menu so if I right click on any file, choose "Send To" and then pick myapp as the Send To destination, my application will take the file I've selected and process it. It works great for the old limited DOS Directory Names and 8.3 file names, but not for long directory names or long file names.
Example: If I pick the file:
"C:\My Documents\Junk Stuff\Long File Name Here.txt"
and do the SEND TO on it, my application ends up with the file name:
"C:\MYDOCU~1\JUNKST~1\LONGFI~1.TXT"
I've tried using "%1" as a command line argument in the SEND TO shortcut, but that still doesn't work.
Does anyone know how to get the normal long file name to come thru? Any help would be appreciated.
-
Aug 30th, 2000, 03:46 AM
#2
Fanatic Member
Try putting quotes around the file name.
'if stored in VB
"""C:\My Documents\Junk Stuff\Long File Name Here.txt"""
This sometimes sorts out those problems.
Iain, thats with an i by the way!
-
Aug 30th, 2000, 10:43 AM
#3
Thread Starter
Addicted Member
I already tried it. No Luck. Any other suggestions?
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
|
Click Here to Expand Forum to Full Width
|