Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DOS command problem
Message
From
09/12/1999 13:42:09
 
 
To
09/12/1999 11:29:27
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00301056
Message ID:
00301154
Views:
40
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform