Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Xenom Apperance

I want to copy one program to many other floppy disks

Recommended Posts

Recently, I had and idea that I could do the big "factory" for any software, that would copy and paste the software )such as openos or data card software) to floppy disks (yeah, that idea is stupid). But I have gone to a problem. I have a REALLY HUGE stack of disk drives, but I do not want to copy every program to every floppy disk manually (I would need to get the dress of floppy, I would need to copy and blah), but what IF the disk drives have their own adress? What if I could just write these programs via the adress of the disk drive? Of course, if you have any other idea, then I will be very happy to get any solution.2020-03-18_22_45_32.png.7beccc8e3aa0fb384f1dc3d9c9349ad8.png

Link to post
Share on other sites

late reply and you have probably lost interest in this project but...
you could use 

local writeTo = {}
local ignoreDrives = {}

-- If the address is contained within a list of drive addresses to be ignored, return false
-- Otherwise return true. Used to filter out RAID arrays, local disks, or other floppies you do not wish to write to
function filter(addr)
	return not ignoreDrives[addr]

-- Loop over all drives, and if they are not blacklisted add them to a list to write to
for _,addr in pairs(component.list("filesystem")) do 
	if filter(addr) then table.insert(writeTo, addr) end 

-- Loop over all drives that are going to be written to and write to them
-- This is a bit more pesudo-code than actual code as I dont really know how your internal structure for data representations may vary (i.e; writing multiple files that are name sensitive)
-- This function could also be 'inlined' with the loop checking whether a filesystem should be written to
for _,addr in pairs(writeTo) do 
	write(writeTo, data)


Sure its a pain to get the address of every drive you dont want to write to but its easier than having to change the recorded address every time you insert a new floppy.  You can minimise the amount of blacklisting you would need to do by using a machine (likely a server) that is connected to as few filesystems as possible. 
You would apply a similar approach for unmanaged drives as well, though I suspect they are not as common and you may get away with not needing to create a blacklist for them.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.