Questions tagged [file-moving]

41 questions
0
votes
1 answer

AWS connection denied

I am currently using ssh to connect my remote aws instance which is ubuntu .At first I could connect to it perfectly. However, after I move the ssh key(.pem file) of ec2 instance from Download to .ssh folder on my own laptop, it shows that Could…
0
votes
1 answer

Renaming file right after download and moving it to new folder

I have script that downloads a file from a site and is saved into my downloads folder. I want to change the name of that file and move it to new folder. I already have code that generates the new filename, but i'm not sure how to take it into…
EagleTamer
  • 47
  • 8
0
votes
0 answers

Moving PDF files to folders with the same name

I have roughly 1700 PDF files that need to be moved to folders with the same name. The PDF files are named as such: ABC12345 BCD23456 And there are corresponding folders named as such: ABC-12345 BCD-23456 Is there a way to move these files…
zack
  • 11
  • 3
0
votes
0 answers

Batch Script: Moving Files from One Folder to Another and Deleting Source Folder

I wish to iterate through a directory containing a dynamic amount of subdirectories (I will be reusing this code for different directories on this machine, one directory has about 160 subdirectories, another has over 1000, etc) and within those…
Shadouhan
  • 1
  • 3
0
votes
1 answer

Moving Files from FTP to Local via linux every second

Dears , i want to make a schedule job in linux crowntab ,to moving (cut) files from a FTP directory to a local directory .it's not one time and should be do this every second without stopping . thanks you all very much in advance .
Arash
  • 29
  • 7
0
votes
0 answers

Moving window to grab hourly reading, netcdf file, python

moving window to grab hourly reading, netcdf file, python what am i doing wrong here i want to grab 4 files then move to the next 4 files? what i want to do i grab the first 4 then move to the next 4 as below.. im trying to match it with the…
A.A
  • 13
  • 6
0
votes
2 answers

File renameTo & File.delete

I have been writing a program for batch system using quartz and i find a problem, if(!file.renameTo(new File(PATH_FILE_PROCESSED+file.getName())))System.out.println("Cannot Move File :"+file.getAbsolutePath()); else{ …
Michael Vinci
  • 105
  • 1
  • 8
0
votes
1 answer

Moving multiple classes to another package and reconfiguring the package in each file

I have a lot of classes within a package and I have to move them to another package. I'm using Eclipse IDE and after moving them, I have this problem of editing each class file's first line (the "package" line) For example, I have to change the…
Dame Lyngdoh
  • 312
  • 4
  • 18
0
votes
0 answers

Move all desktop files, folders, except for "folderA", into "folderA\subfolderB"

I've spent literally > 40 hours trying to get this to work by various methods, including xcopy, and research on StackOverflow and untold numbers of other sites. I know DOS bat file basics, and am proficient with respect to Windows overall…
Saguaro
  • 11
  • 3
0
votes
0 answers

Move actual file instead of a link to other project in Visual Studio

I've been a working with java and Eclipse up until now and moving files between directories was quite easy, just drag & drop and you're done. Now I moved to Visual Studio 2015 due to C++. So I accidentally created a file in the wrong project and…
0
votes
2 answers

Batch file Drag and Drop multiple files from one folder to a new folder Error

So I have the batch file below. @ECHO OFF FOR %%I IN (.) DO SET FolderName=%%~nxI MKDIR "C:\%FolderName%" for %%i in (%*) do ( move "%%~i" "C:\%FolderName%" ) So when I drag and drop multiple files into the batch file, it…
Tou
  • 5
  • 4
0
votes
1 answer

moving files with unconventional file extensions in Python

I am stuck at a part of my script that is supposed to perform the following: a. Iterate through a source directory. b. Move each file (name = GUID.file extension) to a destination folder that is named as that file's guid. In theory, this…
stan1220
  • 25
  • 7
0
votes
3 answers

C# - How do I check if a file exists in a certain directory (based on its content, not the file name)?

I am creating a program that will grab files from a Result Directory (Original Folder) and move those files to a Working Directory (Another Folder). Here the file's name is being changed when the file is moved from one directory to another. Before I…
JP Garza
  • 212
  • 3
  • 16
0
votes
1 answer

Error when moving a file in SSIS,

"The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters" That is the error whenever I try to move a file from one folder to…
Manoj Soundararajan
  • 371
  • 1
  • 3
  • 13
0
votes
1 answer

Batch copying to all folders

I need to batch copy two folders, let's call them A and B, from F:\Sourcefolder\ to F:\destinationfolder subfolders (not to destination folder itself). Now I know when batch copying file (file.exe for example) it is supposed to look something like…