cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Snoopstah
Level 7

Moving files over partitions in installscript

How do I go about moving a folder (and sub folders) from one hard disk to another?

eg: I want to move "C:\MyOrigFolder\" to "D:\MyNewFolder\" ?

This may contain several gig of data so a copy statement is not optimal.
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

I haven't tried it, but will the InstallScript RenameFile function work for this?
0 Kudos
Snoopstah
Level 7

Unfortunately the RenameFile didn't like different disk drives.

I have managed to use XCopyFile, but obviously that takes more time to execute and I aslo need to then cleanup the old directory.
0 Kudos
Snoopstah
Level 7

Hmm. I have since discovered the xCopy is not a viable solution because our clients may have 50 gig worth of data that I need to MOVE not COPY.

There must be a way to go about this other than reading every file into a list and copying/deleting them one by one?

Or is that my only solution?
0 Kudos