Baxos wrote:It did make it alot more clear, but how do a make a "floppy image" then `? i need to make it virtual because i dont have a working floppy disc..
That really depends on the OS you are using.
If its Linux you can use these commands to create a FAT formated floppy
Code: Select all
dd if=/dev/zero of=/floppy.img bs=512 count=2880
mkdosfs floppy.img
and to copy a file inside it you can use
Code: Select all
mcopy -i floppy.img youfile.txt ::/
If you are using windows than i won't really know how to do it
Okay but if i format it in FAT can i then use the int21h call or do i need to find another solution?
IF you are doing OS development (thats why you are here, right?

), than no, you can't use it.
To accomplish a renaming file function you would need to first write an OS, with memory management, floppy driver, and a file system. THEN you could work on the rename function.
Cheers