473,398 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

create short-filename

134 100+
converting a short file name to a long file name
(ex. c:\\program files\\common files\\blah blah blah\\)
to
(ex. c:\\progra~1\\common~1\\blahbl~1\\)

to get a short file name...
you get the name (ex. program files)
you delete all the spaces (ex. programfiles)
you remove all but the first 6 characters (ex. progra)
and you add ~1 to the end (ex. progra~1)

if thats all you had to do, i could simply make a function to do so by using easy functions, but i would have to somehow seperate (program files) from the rest of the directory (c:\\program files\\common files\\blah blah blah\\)
is there and easier way to do this OR does anybody have a premade script to do this?


thank you

PS: i know that if there is (C:\\program files) and (C:\\programing) then it messes things up because (C:\\programming) would have to be (C:\\progra~2) but that doesnt matter to me
Oct 12 '07 #1
1 2362
weaknessforcats
9,208 Expert Mod 8TB
Start reading here.

Functions are already written to convert to short file names.
Oct 13 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Galina | last post by:
Hello I am going to copy a data from MS Access table into Oracle table. One of fields is memo type and data in this field range from 1 character to 551 long string. Do I need to create a field...
3
by: IMS.Rushikesh | last post by:
Hi Friends, I need a XPath query, whcih ll return me subset of data.... check below xml stream <label id="MyExpenseDetails_lbl" xlink:role="terseLabel">Short Expense Details</label> <label...
99
by: Glen Herrmannsfeldt | last post by:
I was compiling a program written by someone else about six years ago, and widely distributed at the time. It also includes makefiles for many different systems, so I know it has been compiled...
3
by: Dave Griffin | last post by:
I have what I think is an "unmanaged DLL" that I access from within C# using the construction: public static extern ushort sbs_init_device(ushort DevNum, ushort queue_length, ushort...
4
by: Doug Bell | last post by:
Hi, I have a small application with a User Settings form I would like to give the Users the ability to (at any time) set the Application to load when the PC is started. Can someone point me in...
0
by: DotDidIt | last post by:
Hi Everybody! I developed a Web service with IBM RAD v 6.0.1. After creating the WSDL file i have tried to develop a .Net client. But by using wsdl.exe (1.1.4322) to create a .net c# proxy i...
14
by: Susan Rice | last post by:
I want to create a readonly array of data, then a readonly array of a structure. This is data I access but I want it protected against accidental change. The following is my test code. #include...
1
by: kenneth6 | last post by:
I read a Java class example on tutorial book. What is the part marked with asterisks doing? What is "create reflection of element" in java? Any analogy in C++? its structure is like the following:...
3
by: =?Utf-8?B?QmVuIFdoeXRl?= | last post by:
I have an asp.net application using vb.net code. When I try and view the pages in design mode I get 'error creating control' messages with 'Attempted to read or write protected memory. This is...
0
by: yrogirg | last post by:
Actually, I need utf-8 to utf-8 encoding which would change the text to another keyboard layout (e.g. from english to russian ghbdtn -> привет) and would not affect other symbols. I`m totally...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.