Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rem get current path
- ::for /f "Tokens=*" %%i in ('CD') do set CurDir=%%i
- set CurDir=%CD%
- set WD=%CurDir%
- cd ..\..
- set MN=%CD%
- cd %CurDir%
- ::Convert double backslashes to single backslashes
- set MNMTemp=%MN%
- set MNMHome=
- set MNM=
- :WHILE
- if "%MNMTemp%"=="" goto WEND
- if not "%MNMHome%"=="" set MNMHome=%MN%\
- for /f "delims=\" %%x in ("%MNMTemp%") do set MNM=%MNM%%%x
- for /f "tokens=1,* delims=\" %%x in ("%MNMTemp%") do set MNMTemp=%%y
- if not "%MNMTemp%"=="" set MNM=%MNM%/
- goto WHILE
- :WEND
- set COMN=%MNM% /mingw
- rem echo %COMN%
- echo %COMN% > etc/fstab
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement