cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jchristman
Level 8

Installscript Move Directory

I am looking for a way in Installscript to move a directory and all of its contents.

example:

move "C:\MyAPP" to "C:\Program Files\MyAPP"

I was going to use something like this, but I do not think this is the best way.

XCopyFile("C:\MyAPP","C:\Program Files\MyAPP",INCLUDE_SUBDIR);
DELETEDIR("C:\MyAPP");
Labels (1)
0 Kudos
(23) Replies
RobertDickau
Flexera Alumni

For that matter, isn't attrib.exe a separate executable that you can launch directly, without going through cmd.exe?

As an aside, the InstallScript SetFileInfo function can also set file and folder attributes, though possibly not in bulk the way attrib does.
0 Kudos
dan_galender
Level 10

Robert, you're right (of course). For some reason I was think attrib was one of those built-in commands (like dir).
0 Kudos
jchristman
Level 8

Thank you both, do you know how I can keep the Command window from opening up while it runs. You see it appear then close.
0 Kudos