0

Can someone tell me how to copy an url to multiple usb drives at once using a USB hub and python 3?

9th Nov 2017, 4:54 PM
Sarah
21 Antworten
+ 8
Not really sure what you're asking... What exactly do you want to do?
9th Nov 2017, 5:05 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 7
URL stands for Uniform Resource Locator -- Internet address of a webpage. You want to save what exactly, the very http:// address? The website content? Then, how are the USB sticks connected? Are they mounted already? If so, you can define a list variable with target file paths, iterate through it and save the files one by one at each of the sticks.
9th Nov 2017, 5:39 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 6
That can be done by threading, no problem. But first, please specify if it is a file to be saved or what?
9th Nov 2017, 6:16 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 6
OK you can just copy it to a file then copy it to the USB sticks but it won't perform the 5 copy operations at once it will copy them one by one
9th Nov 2017, 7:10 PM
warlord
warlord - avatar
+ 6
by the way you need some HTML with python cause you need a method to click if you mean to perform it with a button but not if you perform it with hyper link that can be clicked
9th Nov 2017, 7:13 PM
warlord
warlord - avatar
+ 6
what type of shortcut you will use for the link : icon or file or what ?
9th Nov 2017, 7:18 PM
warlord
warlord - avatar
+ 6
@Sarah k
9th Nov 2017, 7:20 PM
warlord
warlord - avatar
+ 6
do you want to set your path or just copy it an easy copy :p
9th Nov 2017, 7:21 PM
warlord
warlord - avatar
+ 6
please make your question more clear like making points one by one believe me some people start down voting and roasting for that like Stack Overflow
9th Nov 2017, 7:30 PM
warlord
warlord - avatar
+ 6
I don't think anything can be done about it, at least not from the programming level at this stage... EDIT: Unless you could map those disks externally and used mapped addresses in the Python code.
10th Nov 2017, 12:48 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
@Sarah No problem. Let me know if this works, so I can mark this Q as "Solved" :)
9th Nov 2017, 8:06 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
I am thinking about something like this: https://code.sololearn.com/c8Mw3b2P41t8/?ref=app
9th Nov 2017, 7:42 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
Thanks Kuba, it think I can do something with that. I will try it out.
9th Nov 2017, 7:53 PM
Sarah
+ 1
File
9th Nov 2017, 7:19 PM
Sarah
0
I have to copy 1 url to a lot of usb-sticks. I am looking for a way to automate it with 5 usb-sticks at once.
9th Nov 2017, 5:30 PM
Sarah
0
My idea was to be able to do them all at once instead of one by one.
9th Nov 2017, 5:41 PM
Sarah
0
are you using unix-like or windows ?
9th Nov 2017, 6:18 PM
Anthony Campbell
0
Init: on Windows 10, it is a file type url. If you double click on it, you go to the website. (I'm quite new to this, still learning.)
9th Nov 2017, 6:30 PM
Sarah
0
So i need to copy a hyperlink, Kuba.
9th Nov 2017, 6:32 PM
Sarah
0
Challenge : copy 1 url to 5 usb sticks in 1 click, max double click. With guarantee that all destination drives are written. To make it easier: destinations are empty.
9th Nov 2017, 7:27 PM
Sarah