Questions tagged [file-move]

Moving files in a filesystem.

Use this instead of tags like which are really vague.

132 questions
0
votes
1 answer

Powershell move files and folders based on older than x days

I am new to powershell and trying to learn a basic file move from one directory to another. My goal is to move files and folders that are over 18months old to cold storage folder run as a scheduled Task. I need to be able to easily modify it's…
StormySkies
  • 1
  • 1
  • 3
0
votes
0 answers

java.nio.file.FileSystemException error on a program that copies .CR2 images from one folder to another

The goal of the program is to organize the images based on the date they were taken on. I got everything to work but moving is giving me a lot of issues. when I move it, it always works for the firs 2 image files and then starts giving the error…
Tsion
  • 1
  • 2
0
votes
1 answer

Filetypes that Shutil.move and os.rename cannot transfer

I am new to python. I tried to search for answers but I cannot find a exact match to my question. I am trying to move all non-Excel files to another folder. However, there is an error when trying to move a .pbix file. I wonder if there are only…
ambmil
  • 115
  • 3
  • 9
0
votes
1 answer

move file between two different filesystems using file.renameTo returns false

file.renameTo method returns false, in docker container. I am using PVC in container instance. I tried removing PVC, then it works fine, but when I use PVC then returns false Returns false means file is not getting moved or renamed . In my case, the…
Dupinder Singh
  • 7,175
  • 6
  • 37
  • 61
0
votes
1 answer

Moving files into new folders AND reassigning path

I'm new and don't really know how to phrase my question. so in VSCode I'm trying to learn how to organize my files better. I created new folders called Views, Styles and Img. Then I moved my loginform.html files into views, loginform.css into styles…
0
votes
0 answers

WIndows XP SP1 copy command in terminal not working

C:\WINDOWS\system32>copy c:\Inetpub\wwwroot\accesschk.exe c:\Documents and Settings\ copy c:\Inetpub\wwwroot\accesschk.exe c:\Documents and Settings\ The syntax of the command is incorrect. This has become very annoying as I see examples, and I see…
0
votes
1 answer

Automate (or looping) moving certain files to subdirectories by name

I have 207 directories full of .WAV files, where each directory contains a certain number of files recorded on one day (the number varies from directory to directory). The names of the directories are just dates in YYYYMMDD format, and the filenames…
0
votes
1 answer

File rename if file already exists more than one time

I have a working code which will take a file eg, "photo.png" and move it into a folder. If it already exists it will rename it "1_photo.png" although if you have another photo name "photo.png" it will rename it to the file "1_photo.png" that already…
Brenduan
  • 9
  • 5
0
votes
1 answer

Files.move keeps throwing file already exist exception on directory

I am trying to move a file from a folder A: "/files/attachments/2000/filename.txt" to folder B: "/files/attachments/trashbin/2000/filename.txt" but I keep getting the exception: FileAlreadyExistsException and the exception output is:…
Yahav
  • 146
  • 11
0
votes
1 answer

Spring Integration + file reading message source _ Inbound Channel Adapter + Outbound Gateway

For File reading message source Inbound Adapter and transformer with annotations is configured as below @Bean @InboundChannelAdapter(autoStartup = "false", value = "incomingchannel", poller = @Poller("custompoller")) public…
Vas..
  • 13
  • 6
0
votes
0 answers

PHP: getting a 'path not found' error when using rename(). WHY?

on Win10. here's my code. it just has to sort JSON files that got scrambled and so it does a first-field check and then move the relvant file... why won't this move the file!? all paths check out! WTH!? $filesFolder =…
WhiteRau
  • 818
  • 14
  • 32
0
votes
1 answer

Moving files between folders when folder names match partially (in R or VBA)

I'm trying to solve the following problem I have 9 folders titled PROS_2010 to PROS_2019. Each of them has about 500 subfolders with names structured as follows e.g. PROS_201001211_FIRM NAME_number. Each subfolder has a variety of pdf files with…
SJDS
  • 1,239
  • 1
  • 16
  • 31
0
votes
1 answer

how to copy files to different path with Powershell?

I am trying to copy files with powershell. $datestamp = (Get-Date).ToString("yyyyMMdd") Copy-Item -Path \\User\LS\ADMIN\HW\DATA\Payroll\$datestamp\*.txt -Destination C:\Users\User1\Desktop\New folder The files that I am trying to copy are txt…
ted
  • 49
  • 5
0
votes
1 answer

Drupal 8 Moving files between private and public folder on entity save

I am trying to hide files on a not published node. I use scheduler to publish nodes in the future and The files linked to that node cannot be publically accessible yet. I moved them to the private folder. But when the cron runs I have to move the…
0
votes
1 answer

Loop command to move multiple files

I have multiple files in a folder (C:\webfix) the folder has 23 items including random files and folders. I have 70+ folders I need to push these files out to. Each folder looks like…
1 2 3
8 9