Vyom World.com  . Let's Touch the Sky Together!  
. . . . . . .
VyomWorld.com Home
Free Magazines!
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
 Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Screensavers New!
SMS Jokes
 Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE an Overview
GATE Preparation
Study Materal
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
 TOEFL Preparation
TOEFL Resources
 GMAT Preparation
GMAT Resources
 MBA Preparation
MBA Resources
 Networking Concepts
Networking Concepts
 Testing Preparation
Testing Resources
Free Traffic Builder
Webmaster Articles
Web Hosting
Hardware Tutorial
1500 Free eBooks New!
 FREE Publications
Vyom Career eMag.
Get 9,000+ Interview Questions & Answers in an eBook.

  • 9,000+ Interview Questions
  • All Questions Answered
  • 5 FREE Bonuses
  • Free Upgrades

    Get it now!

    Post your Resume to 5800+ Companies

    Reliable Web Hosting

    Get 9,000+ Interview Questions with Answers in an eBook

    Home >> Source Codes Library Home >> Language Home >> Category Home > > Item Description
    Search Code Library


    Title PrettyPath Function
    Description: PrettyPath formats a path for use in user displays. PrettyPath is useful for trimming down long directory paths or abbreviating them. No attempt is made by PrettyPath to determine the validity of the entered path's syntax or if the path already exists on the server. The output of PrettyPath is meant for display purposes only. It should not be used programmatically to pass paths to the FileSystemObject for example. Arguments ============= There are 4 arguments. Only the first, sPath, is required. To bypass the other three arguments, enter null as a placeholder for the argument. If you specify null for any of the last three arguments, the default will be used. Defaults for each argument are below. sPath Required. String. The path to format for display. Can be a virtual, relative or absolute path to a file or folder. hLen Optional. Integer. Default: 3 Each path element will stop being displayed after this length. Value can be 0 or greater. Regardless of the remaining characters in the element, they will be replaced with three dots as placeholders "...". Example: if hLen is 2 and the path entered is "c:\winnt\system32" then PrettyPath will format the path as "c:\wi...\sy..." If hLen is 0, the path would be "c:\...\..." bFile Optional. Boolean. Default: False Show the file name (if path is determined to be a file by prettypath). If set to true, the bExtOnly argument is ignored and the file name in it's entirety (including extension) is shown. Does nothing if the path entered is determined to be a directory path. bExtOnly Optional. Boolean. Default: True Show the file extension (if path is determined to be a file by PrettyPath). If True, file extension is shown. If false, extension may be removed depending on the size of hLen.
    Hits: 1201 Since 25th November, 2003
    Select and Copy the Code
    New! Click here to Add your Code!

    ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
    Source Codes Home Page



    Recently Updated: New Placement Papers added.
    Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

    Copyright ©2003-2018 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy