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

Move files into a new folder with today's date

I have 20 reports that come weekly. I have a powershell scrip that will create a folder with the date on it. I would like to create a script that will create a new folder each time it runs and then move all the xlsx file into that new folder. For…
irishombian
  • 102
  • 4
  • 14
0
votes
0 answers

Moving an entire **folder** in GitHub

I'm very well aware of how to create new folders and move single files between folders. Just edit the name and commit the change. I was wondering if there was an easy or similar way to move an entire folder to a new location within the same…
0
votes
0 answers

move all files and folders within a directory in matlab

I'm trying to move all files and folders within a directory to another location. I thought movefile('D:\path\to\source\*', 'D:\destination\folder') would work, but this gives me an error Error using movefile The requested lookup key was not found…
HappyPy
  • 9,839
  • 13
  • 46
  • 68
0
votes
1 answer

Move a Folder and Subfolders to another Folder using Batch or VBS

I'm trying to automatically move the subfolders and files from my Dropbox folder on my F: Drive to a separate folder on the same drive, therefore emptying my Dropbox and freeing up space in it while backing up the files. I tried this in Batch: MOVE…
Moon
  • 3
  • 3
0
votes
2 answers

how to move file to specific folder(unicode) in python

I want to move the files to a specific folder. However, due to a problem with Unicode, the file is not being moved. import os import shutil file=r"c:/test/test.rar" folder=r"c:/test/発射" shutil.move(file, folder) #os.rename(file,…
0
votes
1 answer

DropIt Project - Moving folders based on number of files in folder

DropIt Project Software: I would like to know if it is possible to copy (or move) folders based on the amount of files they contain? E.g. I have: Folder 1 (2 Files), Folder 2 (5 Files), Folder 3 (1 File). Files 1 and 2 need to be moved to another…
0
votes
2 answers

C# move file with 2 mapped drives

I need to move a file existing on a mapped folder named A:\ to another mapped folder B:\ using the code below File.Move(@"A:\file.txt",@"B:\"); it return the error below Could not find file 'A:\file.txt'. i tried to open A:\file.txt in folder…
Malo
  • 1,232
  • 2
  • 17
  • 28
0
votes
2 answers

How to move a file exists into shared directory to another folder in c#

I have a C# code that moves a local file from folder to another following the code below: File.Move("C:\folder1\file.txt","C:\folder1\folder2\"); this code moves the file.txt to folder2 my problem is the file.txt exists on a shared directory so i…
Malo
  • 1,232
  • 2
  • 17
  • 28
0
votes
0 answers

imported files should be moved to another folder

I have put all the shapefiles that need to be imported to database in a folder. i wrote a script and the shapefiles are been imported to the database. now i need those shapefiles to be moved to another folder after the upload. (the data files would…
stc07stc
  • 1
  • 1
0
votes
3 answers

How to move files from subfolders to their parent directory (unix, terminal)

I have a folder structure like this: A big parent folder named Photos. This folder contains 900+ subfolders named a_000, a_001, a_002 etc. Each of those subfolders contain more subfolders, named dir_001, dir_002 etc. And each of those subfolders…
Mpampirina
  • 103
  • 3
  • 17
0
votes
1 answer

Automatic movement of files

I'm writing a Java program which automatically takes all the files in an origin folder and organizes them into other folders based on their file type (word doc, excel spreadsheet, mp4, etc). The program is working great when I put files in the…
Charan B
  • 1
  • 2
0
votes
0 answers

How do I get the destination folder in explorer

I'm working on a program to "replace" the windows move file-dialog. For this new dialog to work in a similar manner I want to be able to select one or more files drag them to or right-click a destination folder instead of choosing "Move here" I…
kumaheiyama
  • 704
  • 1
  • 13
  • 28
0
votes
2 answers

How to keep writing in a moved file with the same file object?

If I open a file fileObj = open(test.txt, 'wb+') and write some stuff in it fileObj.write(someBytes) then decide to move it somewhere else shutil.move('test.txt', '/tempFolder') and then keep writing in it fileObj.write(someMoreBytes) what…
Maxime Dupré
  • 5,319
  • 7
  • 38
  • 72
0
votes
1 answer

Why does NET movefile sometimes leave the source file on the hard drive

I have a situation, admittedly easily fixed, where I have a single one line piece of code as follows:- My.Computer.FileSystem.MoveFile(f_source, f_dest, True) The true is for the overwrite option. I have an instance during bulk file moving where…
Tim F.
  • 268
  • 2
  • 8
0
votes
1 answer

Moving files from one subdirectory to another II

My directory is like this: /Users/dave/Desktop/test/untitled_folder_0001/vol_0000 /Users/dave/Desktop/test/untitled_folder_0001/rs /Users/dave/Desktop/test/untitled_folder_0001/t1 /Users/dave/Desktop/test/untitled_folder_0001/str I want to move…
tsumaranaina
  • 185
  • 1
  • 11
1 2 3
8 9