Questions tagged [file-move]

Moving files in a filesystem.

Use this instead of tags like which are really vague.

132 questions
2
votes
3 answers

Powershell: Recursively Move Files From Source Directory To One-Level Up

I've just started dabbling with Powershell & after searching many scripts, I have not found one that works. (Maybe I'm not running correctly, but I have enabled the right administrative rights, etc.) My request: A Powershell script which -…
quarkz
  • 17
  • 3
2
votes
1 answer

SftpChannel.rename failed but mv command works. What could be possible causes?

I'm running into this problem where sftpChannel.rename fail with not very helpful error and I can't figure out the reason. File does not exist in destination. Permission are fine because the mv command works. I'll list the permission of both file…
user3758745
  • 777
  • 1
  • 6
  • 19
2
votes
2 answers

Files.move() in Java giving a FilesSystemException error because folder is "being used by another process," but it's not

I want to move a single file to another folder, but I can't because "it is being used by another process." This is my code: static File myFile = new File("C:\\filepath"); static File myFolder = new File("C:\\folderpath"); public static void…
Display name
  • 95
  • 1
  • 2
  • 12
2
votes
4 answers

Copy-Item not including subfolder files of source directory in PowerShell

I have a script which moves files with a specific extension from a source directory to a destination directory. My source directory looks like: FILESFOLDER File1.td File2.td SUBFOLDER File3.td File4.td My script is short and looks…
Kahn Kah
  • 1,389
  • 7
  • 24
  • 49
2
votes
2 answers

move linux directory unless it already exists

I need a way to move a linux directory and all of it's contents only if it doesn't currently exist in the target location. If it does currently exist (including all sub-folders and files) then the source folder can just can just be removed…
user1658170
  • 814
  • 2
  • 14
  • 24
2
votes
2 answers

Deleted file still exists?

I am trying to save a backup of some data. If the backup exists then I want to delete it, give the most recent file the name of the backup file, and then save the new file as the most recent file. The problem I am running into is that when I delete…
Popinjay
  • 73
  • 1
  • 7
2
votes
2 answers

Visual Studio 2013 - Move File To Another Path

Good-afternoon all, I am trying to create this code that will allow me to create a new folder in the directory from what I enter into TextBox1.Text, then open a dialog box and select a PDF which will then put the files path into TextBox2 (the same…
CyronDnB
  • 35
  • 6
2
votes
1 answer

Move a file to another Ftp directory and rename it

I've been struggling with that for the past few hours and I literally can't find a way to do it without downloading and uploading the file again. Is it even possible? This question is kind of a copy of this one: How can I use FTP to move files…
Apostrofix
  • 2,140
  • 8
  • 44
  • 71
2
votes
4 answers

moving a file to different location while it is still been accessed

I developed a java program which is writing data into a file(temporary file) using asynchronousFileChannel. Now each time it writes a entry to the file a second method will be called which will check for its size and if its size exceeds a pre…
Charles Stevens
  • 1,568
  • 15
  • 30
1
vote
1 answer

File.Move System.IO.IOException: "No more connections can be made to this remote computer..."

File.Move System.IO.IOException: "No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept". I have a process running under SYS account. It is processing files on…
Ilan Huberman
  • 406
  • 1
  • 3
  • 15
1
vote
1 answer

How to create a series of folders (0-48) and move files to corresponding new folder R

I need to make a series of folder labelled ppt-01:ppt-48. I then need to move all of the corresponding participant files into the new folders. Currently all files (10 per ppt) are in one folder, and somewhere in each file name the ppt number is…
ubik_01
  • 23
  • 3
1
vote
2 answers

Automatically move files to folders that corresponds with their respective number

I have a script that takes the a number as command-line argument and moves files with this number into the folder with the respective number. Example For example, I have 20 folders named Episode 1 through Episode 20. I also have a total of 120…
bull11trc
  • 61
  • 5
1
vote
0 answers

Why is moving a file within the same network drive so much slower using Move-Item in Powershell, compared to drag-drop in Windows Explorer?

I am trying to move files from one folder to another within the same network drive (Z:). I tried using the following commands in PowerShell 7.2.6: Move-Item -Path Z:\source\toMove*.jpg -Destination Z:\target and Get-ChildItem -Path…
Kevin
  • 242
  • 2
  • 10
1
vote
0 answers

Moving all files/folders in a branch at once to a specific folder in the same branch - GitLab

In the Master Branch of my repository, I have a number of different files and folders. I would like to move them ALL into a folder called "Test Scripts" in the same branch. I'm new to GitLab and have been trying to seek online resources to help me &…
peru_45
  • 330
  • 3
  • 16
1
vote
0 answers

Moving files from a folder to a different folder using PortCMIS (C#)

I have an alfresco database with a directory of folders and files. I want to be able to move from one specific file to a different folder in the click of a button, so I used winForms for my process You need to be Using the PortCMIS library in order…
VoodooJazz_
  • 47
  • 1
  • 7
1
2
3
8 9