Copy a file to multiple drives

(imported topic written by StacyLee)

Looking for some help on a action script to copy a file to multiple drive at the root of the directory.

Most of our systems have a C and a D Drive. However some of our systems have multiple drives with varying drive letters.

I created a simple action script to copy the file to the root of D Drive once it gets downloaded.

I need to copy a file to the root of every drive (windows machines) except the C drive.

-Would I need to somehow enumerate all the drives then with the results somehow try to copy this file to all drives?

-is there a simple action script to just say copy to all drives regardless if they exists or not but just not the C drive?

thanks

(imported comment written by BenKus)

It isn’t particularly easy/pretty, but it isn’t too bad…

See if this helps:

// clear out temp files that might be there
delete move.bat
delete __appendfile

// create a bat file by iterating across the different files
appendfile {(“copy %22C:\somefile.ext%22 %22” & it & “\somefile.ext%22”) of names of drives whose (type of it = “DRIVE_FIXED” AND name of it != “C:”)}

// execute bat file
move __appendfile move.bat
waithidden cmd.exe /C move.bat

Ben