Questions tagged [file-move]

Moving files in a filesystem.

Use this instead of tags like which are really vague.

132 questions
1
vote
2 answers

Moving files to their respective folders based on their partial file name

Hope you are doing great! Would you please help me what code I can use to move files to their respective folders but using only the partial file name? I have successfully created the separate subfolders but I don't know how I will move the files to…
1
vote
1 answer

Copying contents of Sharepoint folder (but not actual folder) up a directory in the same site

I'm attempting to remove some unnecessary parents folders from our Sharepoint Online sites in Powershell now that we've changed our policies regarding file retention. We want to get rid of the pre-existing 2020 folder to minimise the folder…
1
vote
2 answers

R: how to find select files in a folder based on matching specific column title

Sorry for the generic question. I'm looking for pointers for sorting out a data folder, in which I have numerous .txt files. All of them have different titles, and for the vast majority of them, the files have the same dimension, that is the column…
ML33M
  • 341
  • 2
  • 19
1
vote
0 answers

My codes (to move files and obtain data statistics) don't work for large folders on Google Drive

I am using Google Colab to do the following tasks, but it just didn't work. My scripts worked well when I tested on small folders having fewer than 10 files; however, they didn't work for larger files having thousands of files. On a side note note,…
1
vote
1 answer

Moving MVC folders to root causing errors

For version control I have moved all my projects folders from the myproject folder to the root where packages and myproject.sln reside and when I open myproject.sln I get 'One or more projects in the solution were not loaded correctly. Please see…
user616076
  • 3,907
  • 8
  • 38
  • 64
1
vote
3 answers

python- moving files and checking duplicate names

I'm trying to make a code that can move files from one folder to another. For instance, I have files named 0001.jpg, 0002.jpg ... and so on in /test1/ folder and want to move those files to /test3/ folder if the same file name doesn't exist in…
lemi
  • 101
  • 1
  • 2
  • 6
1
vote
2 answers

How to match a list to file names, then move matched files to new directory in Python?

I have a folder of 90,000 PDF documents with sequential numeric titles (e.g. 02.100294.PDF). I have a list of around 70,000 article titles drawn from this folder. I want to build a Python program that matches titles from the list to titles in the…
Aubrey
  • 91
  • 1
  • 7
1
vote
2 answers

Powershell Move-Item from Import-CSV: Error - Could not find part of the path

I've been working on a script in Powershell to get paths from a CSV file and move those files at the corresponding path to a new destination elsewhere. often with a different filename. I am using Version 5.0 For example: Source Destination :…
DrDro
  • 11
  • 1
  • 4
1
vote
2 answers

File.Exists + File.Move Erroring "The process cannot access the file because it is being used by another process."

I have what I thought would be a very simple file mover script. It checks for a file and moves it to a new directory if it exists: if (File.Exists(_collection[x,0])) { System.IO.File.Move(_collection[x, 0], _moveTo); MessageBox.Show("File…
Marshal Alessi
  • 105
  • 2
  • 2
  • 11
1
vote
3 answers

How to programmatically move , copy files to SD?

I am making an android app which lets the user transfer some files from internal storage to external storage(SD card) using SAF. This is how I call an intent to let the user choose the SD card directory. Intent intent = new…
Rahulrr2602
  • 701
  • 1
  • 13
  • 34
1
vote
1 answer

File.Move() operation fails to remove file from original folder without error

I have a Windows service running on Windows Server 2008 R2 Standard Edition. It's a .NET 4.0 application which processes binary files and moves processed files to a different folder on the same volume. File system is NTFS. The issue is with the…
elojd
  • 11
  • 3
1
vote
2 answers

Move a file to a new folder after it has been renamed

I require a VBScript that renames a file and then moves it from one folder to another. The script currently renames the file correctly, but I cannot figure out how to move the file to the new folder after the renaming. Below is the script as it…
jodies
  • 217
  • 1
  • 6
  • 17
1
vote
0 answers

powershell script issue with import-csv and move-item

I'm trying to clean up a emcopy that went wrong. I've compared the source and destination directories and identified what needs to be removed from a shared drive. I have a couple folders and subfolders that need to be addressed first. I've…
1
vote
1 answer

Move file from temporary folder to current folder after file upload with node.js

The node.js server code below allows the client to upload file to a temporary location. var restify = require('restify'); var server = restify.createServer(); server.use(restify.bodyParser()); server.post('/fileupload', function(req, res, next){ …
guagay_wk
  • 26,337
  • 54
  • 186
  • 295
1
vote
0 answers

How to save a file's original location?

This is what i'm trying to do in my application: On startup, the application searches for specific files (*.txt for example) in a specific folder (let's say c:\testfolder + all subfolders) and stores their path in a simple string[]. Some files might…
IanRawz
  • 19
  • 1
  • 5
1 2
3
8 9