Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-30-2004, 08:48 AM
Zweitze Zweitze is online now
Registered User
 
Join Date: 08-27-2004
Posts: 6
System macro for short file names?

Hi all,

Does anyone know if a system macro exists, that converts a file name to a short file name? Something like:
SHORT_FILE_NAME("C:\Program Files\VisBuildPro\VisBuildPro.exe")

I need this for two reasons:
1. Certain command lines are getting towards the limits of the maximum lengths of Windows commands (which is 2048, some commands have a length of 1780 now)
2. VisualBuild is also used to configure developer systems, and in that configurations certain Delphi packages are installed or removed. Delphi (version 5) itself writes short file names in the registry.

If such a macro doesn't exist, can this be added to the wish list?

Thanks
Zweitze de Vries
PerfectView
Reply With Quote
  #2  
Old 11-30-2004, 10:06 AM
kevina kevina is online now
Registered User
 
Join Date: 03-27-2003
Posts: 825
Here is a VBScript example (use brackets around the expression when placing in a step field):

[vbld_FSO.GetFile("C:\Program Files\VisBuildPro\VisBuildPro.exe").ShortPath]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 02:13 PM.


Copyright © 1999-2023 Kinook Software, Inc.