Re: [Freedos-user] variable for boot device?

2009-02-08 Thread Michael Reichenbach
Eric Auer schrieb: Hi Michael, I need a variable %bootdevice% (or w/e) pointing to the current session's boot device (A:\ or C:\). Nice :-) Is there such a variable or can you tell me how to set this variable automatic in batch? I do not remember one, but it is extremely easy to do:

Re: [Freedos-user] variable for boot device?

2009-02-08 Thread Michael Reichenbach
Christian Masloch schrieb: On read-only media the 'set /e bootdevice=bootdev' will create an error due to write protection. How this can be solved? Did you set the TEMP or TMP environment variable to a directory on a writable drive? No, there is no writable device. Well, I could

Re: [Freedos-user] variable for boot device?

2009-02-08 Thread Christian Masloch
On read-only media the 'set /e bootdevice=bootdev' will create an error due to write protection. How this can be solved? Did you set the TEMP or TMP environment variable to a directory on a writable drive? No, there is no writable device. Well, I could introduce a ramdisk but I don't

Re: [Freedos-user] variable for boot device?

2009-02-08 Thread Blair Campbell
Well, I could introduce a ramdisk but I don't really like to. You have to. SET /E uses a temporary file for the output of the command, just as pipes do. Yes; in a single-tasking environment, it is difficult to avoid using a temporary file for pipes, but you could also write a utility to read

[Freedos-user] variable for boot device?

2009-02-03 Thread Michael Reichenbach
Hi! I need a variable %bootdevice% (or w/e) pointing to the current session's boot device (A:\ or C:\). Is there such a variable or can you tell me how to set this variable automatic in batch? regards, -mr -- Create