After zipping the folder structure is like this
con-1.0-SNAPSHOT-Zipped inside this folder there is con-1.0-SNAPSHOT-Zipped inside it there is a folder named as B folder and then inside it there are the files.
Is it possible to make less folders , i mean can only a single folder be made inside which the files should be there ?
Related
I have a folder that contains multiple subfolders, and each of those subfolders may contain their own subfolders, which may then contain their own subfolders, etc. and all of these folders may contain .txt files. I want to search all of the folders for files containing a certain phrase, then copy those files to a separate folder while maintaining their original folder structure. For example, I start with this:
original folder
subfolder 1
subfolder a
textfile1.txt
textfile2.txt
subfolder b
subfolder 2
textfile3.txt
subfolder 3
textfile2 and 3 contain the phrase. My destination folder ends up like this:
destination folder
original folder
subfolder 1
subfolder a
textfile2.txt
subfolder 2
textfile3.txt
How do I do this?
My folder structure is as follows :
and so on.
How do I copy the first file from each folder and rename them (maybe with the parent folder's name) so as to not ending up replacing them?
P.S :
I want to store them in a new folder with the same sub directories as source but with just one .wav file in each. And yes, in shell script or
Main_Folder/sub_folder_1/abc.wav
Main_Folder/sub_folder_1/def.wav
Main_Folder/sub_folder_2/abc.wav
Main_Folder/sub_folder_2/def.wav
Main_Folder/sub_folder_3/abc.wav
Main_Folder/sub_folder_3/def.wav
This folder structure repeats for all the sub_folders under the main_folder.
I want the output to look like :
New_Main_Folder/sub_folder_1/abc.wav
New_Main_Folder/sub_folder_2/abc.wav
New_Main_Folder/sub_folder_3/abc.wav
I installed the DropIt product to copy PDF files from the selected folder and its subfolders.
I defined association :
rule: **;*.pdf which means any subfolder and just PDF files).
action: copy
destination folder : c:\mybackup\%SubDir%\
I drag and drop a selected folder and drop it into DropIt's icon.
Actually no file matches
Actually you can use only *.pdf and I assume it will already check all subfolder and process .pdf files.
Essentially what I am looking to create is a script that will rename files in a folder, create a new folder with a specific name and place the renamed file in that new folder.
So, for instance, let's say that I had 2 files called:
test-spa.txt
test-ger.txt
I would then want to create 2 folders called spa and ger, respectively, place the appropriate file into each folder then rename the file by removing the language component; the resulting files in each folder would be test.txt.
Thanks,
Jaime
So here is the simple solution I came up with to create folders and place specific files in them. So long as I have the bat file in the same folder it works great:
#echo off
md spa ger
move file.txt EN\file.txt
move file-spa.txt spa\file.txt
move file-ger.txt ger\file.txt
I'm wondering if there is something missing that may cause an issue, such as specifying that this should only work in the current directory?
Hi when I tried to transfer the contents of a folder ( The folder has several subfolders and few files) using MQFTE ftecreatetransfer command, Not only the few files in the folder but also the contents of the subfolder are transferred to destination. The same subfolders are created in destination and the contents are transferred. Is there a way to avoid the files from subfolders being transferred ?
As per this page in the Infocenter:
When a directory is specified as a source file specification, the
contents of the directory are copied. More precisely, all files in the
directory and in all its subdirectories, including hidden files, are
copied.
However, it looks like they anticipated your question because the page recently added this clarification:
For example, to copy the contents of DIR1 to DIR2 only, specify
fteCreateTransfer ... -dd DIR2 DIR1/*
So instead of specifying the folder, add the wild card to the end and you get just the files in the top level of that folder. (Assuming of course that you do not also use the -r option!)