help switching file names or getting list of files in a dir 
Author Message
 help switching file names or getting list of files in a dir

Hello All,

What I am trying to do is to make a program which will randomly switch
file names for all the files inside a directory.  In other words flies
will be renamed to names of other files in the directory, the end
result being that the user will not know which file is really which.

Can anyone tell me how to get a list of the file names in a directory
and maybe give me some hints on how to perform the name swapping?

Any help would be greatly appreciated.



Tue, 24 Oct 2000 03:00:00 GMT  
 help switching file names or getting list of files in a dir

use the dir() function.


Quote:

>Hello All,

>What I am trying to do is to make a program which will randomly switch
>file names for all the files inside a directory.  In other words flies
>will be renamed to names of other files in the directory, the end
>result being that the user will not know which file is really which.

>Can anyone tell me how to get a list of the file names in a directory
>and maybe give me some hints on how to perform the name swapping?

>Any help would be greatly appreciated.



Tue, 24 Oct 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Getting short file name from long file name:

2. getting name of exe file from task list

3. what happened to dir list and file list?

4. Help,,,Getting Dir list with VB5 winsock control

5. Getting open file name w/o opening file

6. dynamically getting file name when saving DOC file in VB

7. Getting file info using a file list box and putting in an array

8. Getting the length of selected files in a File List Box (sum in bytes)

9. Getting selected files (file list box)

10. Getting selected files (file list box)

11. Long File Names in File List Box

12. How to sort the file name in the File List Control

 

 
Powered by phpBB® Forum Software