PC help. Files and Folders - HotUKDeals
We use cookie files to improve site functionality and personalisation. By continuing to use HUKD, you accept our cookie and privacy policy.
Get the HUKD app free at Google Play

Search Error

An error occurred when searching, please try again!

Login / Sign UpSubmit

PC help. Files and Folders

ChipSticks Avatar
7y, 9m agoPosted 7 years, 9 months ago
I was wondering if any of you smartie pants can help me.

Currently at work I have to occasionally move a single file and put a copy into several (20-30) folders, at the moment I'm pasting the file into each folder, but it can take a few minutes, I've tried to work out if there is an easier way to do it but I'm stumped.

Can it be done?

thanks for any help

Chips xx
Tags:
ChipSticks Avatar
7y, 9m agoPosted 7 years, 9 months ago
Options

All Comments

(10) Jump to unreadPost a comment
Comments/page:
1 Like #1
Assuming that you're working with Windows, why not create a batch file? It may mean a bit of typing to start with, but then all you need to do when you want to move the file is double-click on your batch file:)

If the file name changes or the target location changes then you can always edit the file.

If you need help putting together a suitable batch file then let us know.
#2
Never used batch files, yes runnning XP professional

It's basically an IT beginners course I assist the tutor on, all their work is kept on servers, in their own area, in their own named folder, we have to occasionally add worksheets to their folders. I find it a bore and was just wondering if there is an easier way to do it.
1 Like #3
something like this will work...

copy

so you would have a line such as:

copy c:\workbook.xls c:\location1

and repeat for the other locations you want to copy to.

ie

copy c:\workbook.xls c:\location1
copy c:\workbook.xls c:\location2
copy c:\workbook.xls c:\location3

Easiest way to put into a batch file is to create a text document with the code (ie the three copy lines above) and then rename it to .bat, eg copy.bat.
Then just double click it to run it.
#4
The only thing is, the folders tend to get moved about often. The named folders are all in folders with dates, and these change, so I'm guessing that would make the batch file redundant?

I was hoping for an easy fix, but I guess its Ctrl V FTW... lol
#5
ChipSticks
The only thing is, the folders tend to get moved about often. The named folders are all in folders with dates, and these change, so I'm guessing that would make the batch file redundant?


Yep, it kinda would! Unless you change the batch file each time to reflect the new names.
I guess it depends how many copies you need to make as to whether its worth it or not.
#6
Probably not really worth it, I'm just being a lazy turd lol

Thought I was being a bit dim and there was probably a really easy way to do it.
#7
Store the folder names in a text file that you can update as needed and just loop through the folders in a batch file i.e.:

create a text file with a list of folder names i.e.
c:\location1
c:\location2
c:\location3
etc ...

this will be folder_names.txt.

Then to create the batch file, just open a new text doc, add in the code from below and save it as whatever[I].bat e.g. copy.bat[/I]

FOR /F “tokens=1″ %%A IN (C:\folder_names.txt) DO (

copy c:\workbook.xls %%A

)


So the only changes you need to make are those to the folder_names file or if your changing the file being copied you can do it in the batchfile.
#8
I think what you are trying to do is still possible using a batch file; my advice is to research the topic on the internet - start off by looking at batch files in general to understand them & what they can do, then get more specific with your searches.:thumbsup:
banned#9
Get the tutor to organise/standardise users locations, then you could use a batch file :)

Tutors can be so messy sometimes, lol :)
#10
ChipSticks
The only thing is, the folders tend to get moved about often. The named folders are all in folders with dates, and these change, so I'm guessing that would make the batch file redundant?


Without knowing the full situation it's hard to suggest a solution.

What exactly is the folder structure of the destination? Does every folder need a copy of the file? Is there any logic to the folder names?

If you've got a different set of folders each time named with no easily specifiable logic then you're unlikely to find anything that can help since it'd be impossible to tell where you want the files to go. The only thing I can suggest there is using a file explorer that doesn't pop up a transfer box for each new file and uses a tree view so you can drag and drop without having to perform any intermediate actions.

Post a Comment

You don't need an account to leave a comment. Just enter your email address. We'll keep it private.

...OR log in with your social account

...OR comment using your social account

Thanks for your comment! Keep it up!
We just need to have a quick look and it will be live soon.
The community is happy to hear your opinion! Keep contributing!