Solved

Long Filenames

Posted on 1998-08-07
3
214 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

948 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now