Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code to remove spaces in filenames?
Message
From
16/05/2009 13:15:38
 
 
To
16/05/2009 13:05:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01400252
Message ID:
01400253
Views:
106
This message has been marked as the solution to the initial question of the thread.
Never use macro (&) to reference a filename, use a name expression instead! It's faster and safer.
rename (gcTableName) To c:\temp.xdbf
>i am trying to rename any file that is selected by operator and call it FILE.dbf - from there it is processed.
>PROBLEM: when there is a space in the file name "This file.xls" i get error message 'command is missing required clause'
>see below code
>is there a simple code to remove spaces in filenames?
>
>thanks for help
>k
>
>gcTableName = GETFILE('dbf', 'Open Table:')
>rename &gcTableName To c:\temp.xdbf &&& here is where i get error message
>erase *.dbf
>rename c:\temp.xdbf To c:\File.dbf
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform