Questions tagged [file-moving]
41 questions
0
votes
1 answer
UNIX how to use the base of an input file as part of an output file
I use UNIX fairly infrequently so I apologize if this seems like an easy question. I am trying to loop through subdirectories and files, then generate an output from the specific files that the loop grabs, then pipe an output to a file in another…

user3062260
- 1,584
- 4
- 25
- 53
0
votes
1 answer
Batch file to move files based on name w/o creating new folders
I need to move files from a directory to another directory based on the files name. The files are in the format of 12345 123456.pdf where the 2 string lengths can vary. There will always be a space between them though and they are always PDF…

ScottJamesSDF
- 53
- 7
0
votes
1 answer
Unable to move a file using java while using apache tika
I am passing a file as input stream to parser.parse() method while using apache tika library to convert file to text.The method throws an exception (displayed below) but the input stream is closed in the finally block successfully. Then while…

Deepanshu Bhardwaj
- 43
- 6
0
votes
2 answers
Switching hosts, Moving databases, but having trouble
So I do mainly design-based work for a small company. Graphic/Web (more so advertising). I have maintained and updated their decent-sized website for awhile now, but now we are switching hosts.
I have been asked for passwords to the wordpress blog…

user3737700
- 51
- 2
- 7
0
votes
1 answer
In KSH I'm trying to grep for string inside a file name and if there move to a different directory
I've got a script that takes all files with extension of .123 Some of them start with ABC others start with XYZ. I want to take all the files that have XYZ in the PREFIX and move them to a different directory.
For example, XYZothertext.123 and…

Bryan-A
- 1
0
votes
0 answers
The process cannot access the file because it is being used by another process when copy and moving file
In C# console app I am trying to copy images from one dir to another and then copy the original image from original location to a processed location. I have tried Thread.Sleep etc. but with no luck. Please help!
File.Copy(sourcePath, destinationPath…

chugh97
- 9,602
- 25
- 89
- 136
-1
votes
1 answer
Issue with moving a file using shutil.move()
I am trying to move a file using the shutil module in Python. I keep getting this error:
Traceback (most recent call last):
File "", line 31, in
File "C:\Python27\lib\shutil.py", line 302, in move
copy2(src, real_dst)
File…

Kyle K
- 503
- 1
- 4
- 9
-1
votes
2 answers
Need batch program that moves files without copying then deleting them
Every month I have a very large number of files (in many subfolders) in a particular folder. I need to move them all into a different folder. In an attempt to automate the process of moving them I used robocopy in a batch file. It works fine, but…
user3826040
-2
votes
1 answer
Batch script to move files to folders based on part of file name
I have a relatively simple but time consuming task of moving certain files to designated folders.
Example File names:
01234567.Description.Date.FileExtension
89ABCDEF.Description.Date.FileExtension
Example Folders:
01234567
89ABCDEF
All are within…

Hashi Mohamed
- 1
- 3
-2
votes
2 answers
How to check if moving a file is finished in perl?
I have a Perl script that moves files into folders. Every time it runs it checks the filenames in the folders. But if I have a bigger file it might not be ready with the moving when it checks the filenames, and it really can mess up stuff. I would…

TheAdam122
- 99
- 11
-2
votes
1 answer
File Deletion Automated in Windows
We have following requirement.can anyone please help me to write bat script? if you have the script already for my requirement it would be very much appriciated.
1.Input text file will be uploaded manually in the server path e.g:…

Tamil Arasan
- 11
- 3