Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More on long path
Message
De
31/05/2012 16:32:07
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01544991
Message ID:
01544997
Vues:
16
>You could use the ShortName, not shure how to do it in VB9.0, as you already know, but it should be very simple, in FoxPro I would do this
>
>
>loFSO  = CREATEOBJECT('Scripting.FileSystemObject')
>loFile = loFSO.GetFile(GETFILE())
>? loFile.ShortName
>? loFile.ShortPath
>
>
>ie:
>For
>C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Samples\Northwind.sdf I will get
>
>C:\PROGRA~2\MI0788~1\V3.5\SAMPLES\NORTHW~1.SDF
>
>
>There is still no guarantee that it will be shorter than 260 chars but you've got more chances that it'll work

Yes, that is correct. We will not have any guarantee that that will always work assuming similar long file names and such.

Thanks for having responded.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform