Board index » Visual Studio » Randomly renaming of a file
|
PeteBrady
|
|
PeteBrady
|
Randomly renaming of a file
Visual Studio10
How can rename a file randomly ? I want to preserve the initial name and the extension. - |
| Larry
Registered User |
Wed Nov 05 01:18:55 CST 2003
Re:Randomly renaming of a file
"giannis" <giakara@hotmail>wrote
QuoteHow can rename a file randomly ? How come my life is so much harder than anybody else's? If you get a little more precise with what you want to do, perhaps others can offer replies a little more pertainent to your question! What you ask does not make sense, to me. <g> LFS - |
| giannis
Registered User |
Wed Nov 05 01:36:15 CST 2003
Re:Randomly renaming of a file
I want to make a function that renames a file, randomly,
and preserve the initial name, that is add something in the initial name. How can find what must add in the initial name? "Larry Serflaten" <serflaten@usinternet.com>wrote in message Quote"giannis" <giakara@hotmail>wrote - |
| Hapticz
Registered User |
Wed Nov 05 03:07:52 CST 2003
Re:Randomly renaming of a file
NAME oldwithfullpath AS fullpath plus old name (minus the extension) plus
some random string plus the original extension BUT, check first that the new name is not already in existence! RandString=Format$(Hex$(RND *(Timer*100),"000000000000") this may work nearly every time or create a value based in a summation of the ascii letters of the original name then randomize that value -- Best regards, Hapticz STOP STOP STOP STOP STOP STOP STOP STOP STOP <>><<>><<><>><<><>><<>><<><>><<>><<>><<>><<>><<> "giannis" <giakara@hotmail>wrote in message QuoteI want to make a function that renames a file, randomly, - |
