Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShFileOperation - doesn't work!!!!!!!! :(((
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00732840
Message ID:
00738406
Views:
16
Sergey,

Can I use ShFileOperation to move files into new directory under new name, e.g.

g:\Redp\MyDir\MyFile.* to g:\redp\MyOtherDir\MyNewFile.* ?

It doesn't seem to work. I want to use ShFileOperation because my new file name is DoNotProcess and if I use VFP Copy file, it puts everything in lower case... I'm not sure, if CopyFile API can do this sort of operation too...

>Naday,
>
>You can fix this problem by specifying full path instead of relative path. See PRB: File Names Truncated When Using SHFileOperation mskb #186152.
>
>
>>Hi everybody,
>>
>>I'm trying to move files with very long names on Windows 2000 using the following code:
>< snip >
>>
>>I'm invoking it with this syntax:
>>
>>CopyFiles("\redp\work\DataEntry\nh\n0250sales121302_0000*.*","\redp\work\DataEntry\nh\BackUp\","Move")
>>
>>The files moved, but the name in backup directory became n0250Sal.* instead of that long name.
>>
>>I tried Fox commands (Copy File, then erase and it worked). Why CopyFiles doesn't work?
>>
>>Could you please help me?
>>
>>Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform