coollector.com
https://www.coollector.com/

Portable on hdd
https://www.coollector.com/viewtopic.php?f=1&t=590
Page 3 of 3

Author:  kakashi [ Tue Mar 15, 2011 2:58 pm ]
Post subject:  Re: Portable on hdd

(cool) Hector wrote:
This solution is even simpler


How?

Author:  (cool) Hector [ Tue Mar 15, 2011 3:06 pm ]
Post subject:  Re: Portable on hdd

kakashi wrote:
Serial #?

Sorry, I don't understand what you mean.

Author:  (cool) Hector [ Tue Mar 15, 2011 3:09 pm ]
Post subject:  Re: Portable on hdd

kakashi wrote:
(cool) Hector wrote:
This solution is even simpler


How?

It's technically simpler, because I still don't know how to obtain the name of a drive. It's also simpler for the users because they have nothing to do, it works in all cases, they can rename their drive if they want, etc...

Author:  kakashi [ Tue Mar 15, 2011 3:13 pm ]
Post subject:  Re: Portable on hdd

Information about a volume includes driveletter, drivelabel/name, and its serial number
http://en.wikipedia.org/wiki/Volume_serial_number

I guess you didn't use the serial number then.

Might i ask: what did you use? (thats what i meant by asking how. Your solution seems much simpler)

Author:  (cool) Hector [ Tue Mar 15, 2011 3:17 pm ]
Post subject:  Re: Portable on hdd

Even if I knew how to get the drive name, this name hasn't been saved, we currently have only a letter, so I have no way to determine if a drive has changed or not.

Author:  (cool) Hector [ Tue Mar 15, 2011 3:20 pm ]
Post subject:  Re: Portable on hdd

kakashi wrote:
Might i ask: what did you use? (thats what i meant by asking how. Your solution seems much simpler)

Oh, ok, now I understand.

I said that my solution was simple because it's ridiculously simple.

Before displaying a file path, I check if the file really exists. If the file doesn't seem to exist, then I check the 25 other possible drive letters, and if I finally find the file, I just have to correct the path.

Author:  kakashi [ Tue Mar 15, 2011 3:26 pm ]
Post subject:  Re: Portable on hdd

:rofl: it crossed my mind.

It was impossible for me to test and silly at best.
I cant believe you actually tried it.

Page 3 of 3 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/