Board index » Visual Studio » Randomly renaming of a file

Randomly renaming of a file

Visual Studio10
How can rename a file randomly ?

I want to preserve the initial name

and the extension.


-
 

Re:Randomly renaming of a file

"giannis" <giakara@hotmail>wrote

Quote
How can rename a file randomly ?

I want to preserve the initial name

and the extension.



I left my bowling ball in a foot locker in Chicago!

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







-

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

>How can rename a file randomly ?

>I want to preserve the initial name

>and the extension.



I left my bowling ball in a foot locker in Chicago!

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











-

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

Quote
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

news:e8Xkly2oDHA.2732@TK2MSFTNGP11.phx.gbl...

>"giannis" <giakara@hotmail>wrote

>>How can rename a file randomly ?

>>I want to preserve the initial name

>>and the extension.

>

>I left my bowling ball in a foot locker in Chicago!

>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

>

>

>









-