I have a file named c:\music.mp3 I want to make 30 copies of it in the same folder.
I step through the code. It sees the source file. It does not complain. It does not create the Target file. I must be missing some tiny detail. Can you please look at my code?
'This funciton assumes that the file exists on the c: drive.
' It is a utility function.
Set FSO = CreateObject("Scripting.FileSystemObject")
For mCount = 1 To 30
If FSO.FileExists ("c:\music\music.mp3") Then '<It does exist.
mNewFile = "c:\music_" & mCount & ".mp3"
FSO.CopyFile "c:\music\music.mp3", mNewFile, True <Does not create the file.