windows: use SYSTEMDRIVE instead of hard-coding C:
authorBruce Cran <BCran@fusionio.com>
Thu, 22 Dec 2011 19:17:25 +0000 (20:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 22 Dec 2011 19:17:25 +0000 (20:17 +0100)
This allows FIO.bat to work on a system with multiple copies of Windows
installed.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/windows/fio/FIO.bat

index cb3ca863c5e0064f6866f9ff4b2465809ef86476..320043bbc09c095b53221bd9544198c508c81834 100644 (file)
@@ -1,9 +1,9 @@
 @echo off\r
 \r
-C:\r
+%SYSTEMDRIVE%\r
 IF EXIST     "%PROGRAMFILES(X86)%" set ROOTDIR=%PROGRAMFILES(X86)%\FIO\r
 IF NOT EXIST "%PROGRAMFILES(X86)%" set ROOTDIR=%PROGRAMFILES%\FIO\r
 chdir "%ROOTDIR%\bin"\r
 \r
 bash -c "echo \"Run FIO by typing 'fio'\" && echo \"This is a virtual filesystem: the root directory is $ROOTDIR\" && echo \"In this environment the path separator is '/' not '\\'\" && echo \"The C: drive is available under /cygdrive/c\" && echo \"Examples are in /examples ($ROOTDIR\\examples)\" && echo \"Type 'cd' to change directory and 'dir' (or 'ls') to see directory contents\" && echo \"QuickEdit mode is enabled: copy text by highlighting it and right-clicking\" && echo \"To exit, close the window\" && /usr/sbin/cygserver & 2> /dev/null"\r
-bash --login -i
\ No newline at end of file
+bash --login -i\r