Batch code to transfer files.

kamiakze13016 Posted messages 9 Registration date   Status Member Last intervention   -  
Toncopin Posted messages 140 Status Member -
Hello,

I have a dedicated Windows 2012 R2 Standard server, and I have a game server on it with an FTP server. What I would like to do is create a batch file that would take the files from a directory "A" to place them in a directory "B". Is this possible?

Configuration: Windows 7 / Chrome 46.0.2490.71

2 answers

  1. Toncopin Posted messages 140 Status Member 7
     
    Yes, it is entirely possible to do batch cut/paste, here is the command:
    move folder/file folder2/file
    0
    1. kamiakze13016 Posted messages 9 Registration date   Status Member Last intervention  
       
      ok I want to copy myself but I think I need to replace move with copy?
      0
  2. kamiakze13016 Posted messages 9 Registration date   Status Member Last intervention  
     
    I'm having a problem again ^^' I ran this in the command line, but the file isn't being created, I don't understand why?
    xcopy C:\Users\Administrateur\Desktop\FTP Modif Serveur\Altis_Life.Altis C:\Program Files (x86)\Steam\steamapps\common\Arma_3_Server\mpmissions\Altis_Life.Altis
    0
    1. Toncopin Posted messages 140 Status Member 7
       
      There are spaces in your folder names and that causes problems, so you need to put each path in quotes:
      xcopy "C:\Users\Administrateur\Desktop\FTP Modif Serveur\Altis_Life.Altis" "C:\Program File(x86)\Steam\steamapps\common\Arma_3_Server\mpmissions\Altis_Life.Altis"
      0