Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace spaces of text file name by _
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01486147
Message ID:
01486208
Views:
55
Avoid macros, use name expressions instead!
RENAME (lcFileName) TO (Yournewfilename)
>Thank!!, I add this to complete the process...
>
>Local lcFileName
>lcFileName = Getfile("txt", ;
> this.Caption, ;
> "Escojer ..")
>
>If Empty(lcFileName)
> Return
>Endif
>
>
>Yournewfilename=chrtran(lcFileName,' ','_')
>
>RENAME [&lcFileName] TO [&Yournewfilename]
>lcFileName = Yournewfilename
>
>
>
>
>>>Hi if I have a file named [file test.txt] how can replace by [file_test.txt]
>>>
>>>thank
>>
>>
Yournewfilename=chrtran(youroldfile,' ','_')
Previous
Reply
Map
View

Click here to load this message in the networking platform