Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DOS command problem
Message
De
09/12/1999 13:42:09
 
 
À
09/12/1999 11:29:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00301056
Message ID:
00301154
Vues:
41
>Hello
>
>Using VFP3, I do the following to bring data that start in ER from C:\ windows directory to table Dirs.dbf
>
>!DIR C:\ER* /on /b > DIRS.TXT
>
>APPEND FROM DIRS.TXT TYPE SDF
>
>The problem is that command get only 8.3 file name where on long name I get filename~1.XXX instead of filenamethree.XXX.
>
>How can I work around this problem???

The obvious one would be to pull in an array of files using ADIR, and append that into the list, something like:
DECLARE aFiles[1,5]
aFiles=NULL
IF ADIR(aFiles,'C:\ER*') > 0
   APPEND FROM ARRAY aFiles
ENDIF
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform