Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming a file name with a leading space
Message
From
21/08/2000 11:13:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00407286
Message ID:
00407324
Views:
20
>Has anyone run into trouble while attempting to rename a file which has a leading space?

How about:
     lcPath = sys(5) + curdir()
     gnCount = adir(gaTifs, '*.tif')
     for nCounter = 1 to gnCount
          rename (lcPath + gaTifs(nCounter,1)) to (lcPath + substr(gaTifs(nCounter,1)3,6))
     endfor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform