.vbs convert filename to 8.3

Posted on 2004-11-09
Last Modified: 2012-05-05
I was wondering if anyone had a simple code snippet that would convert a filename (contained in a string) to an 8.3 filename (contained in a string).


C:\Documents and Settings\Dave

I want to add this snippet to my existing .vbs script, so no "other" solutions please.


I just figured this one out myself.  The answer was for me to use a combination of trim() and mid().  So, shall i award the points to whoever can tell me how to remove this question?

Question by:antstrength
    1 Comment
    LVL 76

    Accepted Solution

    Post a request in Community Support ( asking to have the question deleted.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video discusses moving either the default database or any database to a new volume.

    755 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

    18 Experts available now in Live!

    Get 1:1 Help Now