Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing to a folder with a long name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00826065
Message ID:
00826078
Vues:
26
I tried your code and I'm still getting an "Invalid path or filename" error. I'm using VFP7 SP1

Enmanuel

>VFP supports long file/directory names. Most likely it doesn't work because you are using CD command incorrectly. Try
cDir = "c:\my new current folder"
>CD (cDir)
BTW, what VFP version/SP are you using?
>
>
>>Hi all, I've been trying to use the SetCurrentDirectory API function to change from a folder to another with a long name (not supported for the CD command of VFP) but it isn't working. Here's the sintax I'm using so if anybody knows the reason just let me know.
>>
>>
>>  SET DEFAULT TO c:\anyfolder
>>  DECLARE INTEGER SetCurrentDirectory  IN WIN32API  string @
>>
>>  cDir ="c:\my new current folder"+CHR(0)
>>  x=SetCurrentDirectory(cDir)
>>
>>
>>TIA,
>>
>>Enmanuel
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform