This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Moving files over partitions in installscript
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2008
11:30 PM
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.
eg: I want to move "C:\MyOrigFolder\" to "D:\MyNewFolder\" ?
This may contain several gig of data so a copy statement is not optimal.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 31, 2008
03:09 PM
I haven't tried it, but will the InstallScript RenameFile function work for this?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 31, 2008
04:23 PM
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.
I have managed to use XCopyFile, but obviously that takes more time to execute and I aslo need to then cleanup the old directory.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 10, 2008
11:20 PM
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?
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?