Solved

Long Filenames

Posted on 1998-08-07
3
215 Views
Last Modified: 2013-11-20
How can I get the short version (with ~) of a long filename ? I need it for commands like CreateProcess which only seems to accept the short version.
0
Comment
Question by:MarcoHelmers
3 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1320379
::GetShortPathName().

::CreateProcess() should be able to handle long filenames.
0
 
LVL 2

Expert Comment

by:warmcat
ID: 1320380
Marco, enclose your LFNs in " " if they contain spaces
0
 

Author Comment

by:MarcoHelmers
ID: 1320381
Thanx ...
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 54
difference between String.subString() and String.subSequence() 6 196
isEverywhere  challenge 19 75
x-bar in Google Sheets 2 54
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question