Questions tagged [file-move]

Moving files in a filesystem.

Use this instead of tags like which are really vague.

132 questions
-1
votes
1 answer

Moving files from place to place in Rust

Say I have a file structure like so a | +-- x | +-- y b and I wish to move x from a to b, what would be the best way of achieving this in Rust? I am working on Windows, but would optimally like to add cross platform support. I am not particularly…
Myexgiko
  • 423
  • 1
  • 4
  • 12
-1
votes
1 answer

How to move file from a folder to its sub folder?

I'm working with Python and have to move files from a folder to its sub-folder. I tried using shutil.move(), but it gives an error: Cannot move a directory '%s' into itself Here's the code: for file in your_files: if file in images: …
-1
votes
1 answer

Moving files named with a number

Please assist , I want to only move file with with either a 1 or 2 on the file name. eg : text1.txt,text2.txt,text3.txt,text4.txt,text5.txt only text1.txt and text2.txt must be moved. My PowerShell script copies all the files.
Mali
  • 1
  • 1
-1
votes
2 answers

moving only some part of files to another folder

Hi everyone I´m trying now to move some files from one folder to another. The files that i have are results_1_1 results_2_1 results_3_1 results_1_2 results_2_2 results_3_2 What i´d like to get is to move files results_1_1 results_2_1 results_3_1…
UglyBetty
  • 17
  • 1
-1
votes
1 answer

Trying to move a file and add a date timestamp

Been reading through some of the questions and answers last couple days and can't work out where I'm going wrong here I would appreciate any help given. So I'm trying to move a file to a different fold before pulling in a new copy but I want the one…
TryhisBest
  • 23
  • 4
-1
votes
2 answers

One-line "for" loop using list comprehension

Someone has challenged me to create a program that sorts their pictures into folders based on the month they were taken, and I want to do it in one line (I know, it's inefficient and unreadable, but I still want to do it because one-liners are…
-1
votes
1 answer

how to set different source and destination path to copy files for prod and testing environment in console app

A simple file moving console application where source path and destination path is hard coded right now. I have to run this application in different environment - testing and production with different source path and destination path. how to set…
learningMonk
  • 1,101
  • 13
  • 34
-1
votes
1 answer

Moving certain files from subdirectories in Python

I have a large folder with lots of subfolders, each of which contains one to several files. I'd like to move some of these files based on their filename. I have a list containing the filenames of the files I want to move, so basically I would like…
Alice312
  • 13
  • 3
-2
votes
2 answers

How can i make a moving file who gets renamed if in the target directory there is a file whit the same name(java)?

I'm writing a moving file program for my pc, to finish it I need to rename a moving file if in the target directory there is already a file named the same, how can i do that?
-2
votes
1 answer

Moving particular sub directory if it has "completed.txt" file in it

Copy directories if their subdirectories contain "connect.txt" I want to copy multiple directories from one location to another location only if any of the subdirectories of those contain the connect.txt file in…
Toni
  • 1
  • 1
-2
votes
1 answer

Moving files in bulk to folders according to a key word in the file and folder name

I have several files named like this: Name 39W04150167 7015 0640 0000 2087 5834 I have several folders named like this: 39W04150167 I would like to transfer all files to their respective folders. The folder names and matching key word in the file…
-4
votes
1 answer

How do I make a vbs script to move a certain file to the desktop if I click on it?

There is a folder in which I have a file, and a shortcut to that file. I need a VBscript in the same folder which will move the shortcut to the desktop. If there is any more information you require to help me, I will give it to you.
1 2 3
8
9