batch file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
blukava
Posts: 2
Joined: 04 Dec 2014 05:47

batch file

#1 Post by blukava » 04 Dec 2014 06:08

hi all,

I'm not very friendly with commands. My question is how I can grab files from subfolders?
e.g.
    D:\folder\folder1\
    D:\folder\folder2\
I have fileslist names wich can be used to find pertecular files.

Thank you!

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: batch file

#2 Post by foxidrive » 04 Dec 2014 07:16

Can you explain how you want to grab the files? Is there something that you want to do with them?

I have fileslist names wich can be used to find pertecular files.


I'm not sure what you mean in the sentence above.

ShadowThief
Expert
Posts: 1167
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: batch file

#3 Post by ShadowThief » 04 Dec 2014 21:38

Are you looking for the copy command?

blukava
Posts: 2
Joined: 04 Dec 2014 05:47

Re: batch file

#4 Post by blukava » 04 Dec 2014 23:30

Thanks for the reply and sorry for not being specific.

You wrote:Can you explain how you want to grab the files? Is there something that you want to do with them?


I have a folder named "AB". In this folder there are subfolders and these subfolders includes southends of files. Time by time files included in these folders are updating. So before replacing old with the new one I have to compere to each other manually. But I have file names in notepad and I know which files are going to update.

So lets say: If I know that the file named UNIVERSE is updated I want to copy the same file from above mentioned "AB" folder and put it to other folder.

Hope I've explain it normaly.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: batch file

#5 Post by foxidrive » 05 Dec 2014 15:07

To give you a script, we need full details of the task.

To give you tips on a batch technique, then you have to ask about a specific aspect of a problem.

blukava wrote:I have a folder named "AB". In this folder there are subfolders and these subfolders includes southends of files. Time by time files included in these folders are updating.

You have a tree of files.

So before replacing old with the new one I have to compere to each other manually. But I have file names in notepad and I know which files are going to update.

You want to update some files.

What process needs to be performed to find out if the file needs to be updated?

So lets say: If I know that the file named UNIVERSE is updated I want to copy the same file from above mentioned "AB" folder and put it to other folder.
Hope I've explain it normaly.

AB folder has subfolders with a huge number of files.

What information do you have that shows where the source file is and where the target file is?

Post Reply