c# - How to save a file's original location? -


this i'm trying in application:

on startup, application searches specific files (*.txt example) in specific folder (let's c:\testfolder + subfolders) , stores path in simple string[]. files might located in root-folder (c:\testfolder), files have additional subfolders (c:\testfolder\subfoldera\subfolderb).

now, when click on button, selected files moved temp-folder (like c:\testfolder\temp). when close , reopen application, want move files temp-folder original location. won't work, since original path overwritten after restarting app.

this might easy task, maybe give me hint on how this?

/edit

would possible ignore specific folder (temp-folder in case) when searching files? moved files ignored & old path still saved (in properties.settings. example) first start.

current code i'm using files:

var files = directory.enumeratefiles(file_path, "*.*", searchoption.alldirectories).where(s => s.endswith(".jpg") || s.endswith(".png")); 


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -