Questions tagged [file-move]

Moving files in a filesystem.

Use this instead of tags like which are really vague.

132 questions
0
votes
0 answers

What is a correct way of moving Android Studio folders from "C:\Users\user_name" to another directory?

I have my windows user's folder (in C:\Users) name in cyrillic. When I installed Android Studio, it placed its .android and .AndroidStudio4.0 folders into my user's folder, which caused errors since Android Studio has problems with cyrillic…
0
votes
3 answers

Python - move all files from one folder to another if their file names contain specified words

I have a folder with many files named like homeXXX_roomXXX_high.csv or homeXXX_roomXXX_low.csv, where the XXX part is replaced with a three-digit number. I want to use some code to move the files into separate folders based on the number next to…
Jay
  • 13
  • 2
0
votes
0 answers

Powershell SQLite not releasing database file

Im trying to move file after reading database file but im getting error that it is being used by another process. My code $sDatabasePath=testfile.dat $sDatabaseConnectionString=[string]::Format("data source={0}",$sDatabasePath) $oSQLiteDBConnection…
GamerX
  • 1
  • 2
0
votes
1 answer

shutil.move(os.path.join(...) does not work

This program creates new directories and automatically moves files there, if keywords match. Only step 4 of my program does not work - files are not moved from source foulder to destination folder. Everything else works.* Works as follows: we have a…
fbn001
  • 31
  • 7
0
votes
0 answers

PowerShell Scripting (Move File ONLY When First Task Completes)

So we have a PowerShell script that moves a file to an external FTP\Server. The task also moves said files to an Archive directory However I only want the script to move the file to the archive directory when the first part is successful. I have no…
0
votes
1 answer

How can I get files dir from opened several foleders in python

I trying to make that gather files from several file explorrer with Python I want to move many files to one folder from already opend foleders by file explorer How can I approch opend directory? Manual typing dir one by one is not an option so, what…
GM B
  • 25
  • 4
0
votes
2 answers

Powershell: Moving named files to their corresponding folder

enter image description hereI have a folder which has a bunch of files named: WBF123456, WBF135464, etc. These files need to be moved to the corresponding folder. At the moment I am using the commandline to manually enter the numbers of each file…
c00per
  • 3
  • 4
0
votes
0 answers

From a list of names, check filenames in a group of folders and move matching files to destination folder

I am trying to use Powershell to check a list of names (NameList.xlsx) against a group of 7 folders (in TestLab\TestTest), which are as much as three deep. The name of the person will be in the filename, but will not be an exact match for any of…
0
votes
0 answers

Caused by: java.io.IOException: Invalid argument while copying large file (45 GB)

I have a web application that is deployed using WildFly server 9.x in azure server. I am moving files using inputstream to outputstream. while copying files I am having the IOException while uploading the very large file (45 GB). Caused by:…
0
votes
1 answer

Take the path of a file by dropping it on batch or python

in my head this problem seems simple but I cant for the life of me figure it out. I want to use a function similar to os.replace() to move a file/folder from one location which could vary to one that is set whilst also preserving the name of it. At…
0
votes
1 answer

Copy files in different subdirectories to another directory using a file list

so I have a list of about 26,000 files that I need Copied/moved to a different directory on a server. The different files in the list all have different sub-directory locations and names in the main source folder and the paths are specified in the…
0
votes
0 answers

How to move files in folders quicker?

I am looking for a more optimized way to move files to folders. Currently I have 600k files and would like to split them into separate folders of 40k sized chunks. Bellow is the method I am currently using however it looks like it will take a few…
0
votes
1 answer

Why do I get " stat: path should be string, bytes, os.PathLike or integer, not tuple" type error?

I am trying to group files into folders based on the prefix of the filename. Error: os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not tuple I am getting the error on the line that corresponds to dir_path =…
peony
  • 21
  • 1
  • 7
0
votes
1 answer

Write or move a file in shared Folder

I am trying to write create a file using move function. Android app is calling an API and sending image files. but on server side I am getting "Unable to write a file on \x.x.x.x\test folder. Below code snippet is from production server which…
kreya
  • 1,091
  • 5
  • 24
  • 52
0
votes
1 answer

Moving a file to another directory in Batch using %USERPROFILE%?

So, I have a folder with two files in it, Test.cmd, and Test.txt. I'm trying to move Test.txt to another directory using the Test.cmd file with %USERPROFILE%. Here's my code so far: move "%d%Test.txt"…
One Bass Man
  • 37
  • 1
  • 1
  • 8
1 2 3
8 9