Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7981577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:25:11+00:00 2026-06-04T10:25:11+00:00

Have a network location that shows paths in the 8.3 short format. I need

  • 0

Have a network location that shows paths in the 8.3 short format. I need to convert these to long format for use on UNIX.

Since its a network location I need it needs to work with UNC paths.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:25:13+00:00Added an answer on June 4, 2026 at 10:25 am

    The answer to converting short to long is just a Google search away. This will work for UNC paths only on Windows Vista and up (and possible XP w/ some service packs).

    using System;
    using System.Runtime.InteropServices;
    using System.Text;
    
    public class _Main
    {
        [DllImport("kernel32.dll", CharSet = CharSet.Auto)]
        public static extern int GetLongPathName(
            string path,
            StringBuilder longPath,
            int longPathLength
            );
    
        public static void Main()
        {
            StringBuilder longPath = new StringBuilder(255);
            GetLongPathName(@"\\?\UNC\server\d$\MYTEMP~1\RESOUR~1\sql.txt", longPath, longPath.Capacity);
            Console.WriteLine(longPath.ToString());
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an access database that is saved in a network location so that
I have to download different files from a location on the network, http, but
I have a network of blogs that I want to be able to do
I am building an app that can use a user's current location on certain
I have GetURL method defined to find my location from network provider, you can
If I have a Microsoft Access 2007 database on a network location, is there
I've installed ArchLinux with VB on MacOS. I have network problems, I cannot resolve
I have a network software which uses UDP to communicate with other instances of
I'm designing an application which will have a network interface for feeding out large
I'm using php 5.2 with IIS7.5. I have a network share on a NAS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.