Moving a folder, from one directory to another. in c# -


okay, me , several others trying move bunch of files game launcher. said directory of choice.

the problem is, files wont move.

the way launcher works, click install on game, installs bunch of files location of choice. files wont move.

here' code.

    private void movefolders()     {         string sourcedir = config.getgamepath();         string destinationdir = textboxfolder.text;         try         {             if (directory.exists(sourcedir) == true)             {                 if (bgameisinstalled == true && textboxfolder.textlength > 0)                 {                     directory.move(sourcedir, destinationdir);                     bmovefolders = true;                 }                 else                 {                      messagebox.show("select arma 3 directory before starting game");                 }             }             else             {                 // somthing source directory not existing -              }         }         catch (exception ex)         {             //todo: handle execption has been thrown on launcher update         }     } 

you can use copyfile. said should installer, wouldn't move them folders direction. copy it, because can't use installer 1 more time after these files needed moved away. , if debug it, please don't use try , catch. test code simply.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -