From 781cf4f0177af2bc060967326c6fe9b687bdedba Mon Sep 17 00:00:00 2001 From: Bruce Cran Date: Thu, 22 Dec 2011 20:17:25 +0100 Subject: [PATCH 1/1] windows: use SYSTEMDRIVE instead of hard-coding C: This allows FIO.bat to work on a system with multiple copies of Windows installed. Signed-off-by: Jens Axboe --- os/windows/fio/FIO.bat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/windows/fio/FIO.bat b/os/windows/fio/FIO.bat index cb3ca863..320043bb 100644 --- a/os/windows/fio/FIO.bat +++ b/os/windows/fio/FIO.bat @@ -1,9 +1,9 @@ @echo off -C: +%SYSTEMDRIVE% IF EXIST "%PROGRAMFILES(X86)%" set ROOTDIR=%PROGRAMFILES(X86)%\FIO IF NOT EXIST "%PROGRAMFILES(X86)%" set ROOTDIR=%PROGRAMFILES%\FIO chdir "%ROOTDIR%\bin" 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" -bash --login -i \ No newline at end of file +bash --login -i -- 2.25.1