You can also create .vbs file that does this.  Something like:

set FSO=CreateObject("Scripting.FileSystemObject")
IF FSO.FileExists(Filename) Then
set fileobject=FSO.GetFile(FileName) 
End If
IF FSO.FolderExists(Filename) Then
set fileobject=FSO.GetFolder(FileName) 
End If
shortname = fileobject.ShortPath

Of course, the MiscPlugin is simpler from a powerpro script.

--- In [EMAIL PROTECTED], Alan Martin <[EMAIL PROTECTED]> 
wrote:
> Russel wrote:
> > Have you tried searching in PPdb?
> > Searching for "shortname" in ppdb yields some results. :)
> 
> LOL. Yes, I forgot to RTF PPdb <grin>
> 
> The marvellous MiscPlugin comes to the rescue yet again!
> 
> sFileName = "c:\folder\a very long name.ext"
> strShortname = MiscPlugin.FileInfo("shortname")
> _____________________________________________________
> 
> By the way...
> The PPdb is overdue for an upgrade, especially regarding
> some new services in a few plugins.
> I am holding off now until the current revolutionary
> changes in Powerpro settle down into a non-beta release.
> 
> Alan M



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to