Copying Entire folder - Forum

Forum Navigation
You need to log in to create posts and topics.

Copying Entire folder

I am trying to make a updater that will copy a folder and replace the existing one. Is there a way to copy all files and folders from one folder?

I was thinking about doing a "FileList" action then parsing out each file string but how would I go about doing that?

 

Thanks!

@jaydencone

In order to suggest the most optimal method of achieving your objectives, can you elaborate on the following ? ...

a) let us say that your source folder is called jaySource ...

- are there (sub) folders within jaySource ?
- if so, do you need to parse through all files within such sub-folders too ?

b) let us say that the target folder is jayTarget ...

- will there be files in jaySource that are not in jayTarget ?
- will there be files in jayTarget that are not in jaySource ?
- will such files (and any sub-folders) need to be retained ?

The answers to the above will determine if your objectives can be achieved with NeoScript commands ... or will it be better to (Run) a DOS command like XCOPY.

@jaydencone

In addition to Gaev's last suggestion:

https://reiniermaliepaard.nl/windows-command-line/index.php?id=copy

Maybe helpful for you.

 

 

luishp has reacted to this post.
luishp

@jaydencone

You can also use plugins:

dec_Plus 1.9 (David Esperalta) = dec_CopiarUnDirectorio

NeoDouble 1.0.6 (David Esperalta) = npCopiarCarpeta

lgaFileSys (Leif G. Andersson) = lgaFolder/FileOptions

rtFileSystemMgt 1.4.3b (Ron Marie Services) = rtFolderCopy

luishp has reacted to this post.
luishp