Solved

Long Filenames

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

760 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

21 Experts available now in Live!

Get 1:1 Help Now