Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I delete a file with a leading space?
Message
From
24/08/1999 12:54:19
 
 
To
24/08/1999 11:25:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00255531
Message ID:
00257167
Views:
22
>>This works for me:
>>oFile = fCreate("C:\ junk.dbf")
>>fClose (ofile)
>>
>>x1='!del c:\junk~1.txt'
>>&x1
>
>Hi Peter!
>
>Sorry for the delay in response, I spent a long weekend in Yellowstone park area and am just now getting back to work...
>
>This is showing great promise. I will do an on site test later today. Thanks for the pointer.
>

If this works for you, there's sample code in the FAQ showing how to get the proper short file name from a long file name using the Win32 API - that should help clear up any questions where >1 file with funny characters, or files with other embedded spaces/characters are floating about in your directory.

>Jim
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
Next
Reply
Map
View

Click here to load this message in the networking platform