Different machines have different partitions. How can I create a directory in the last partition?
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
E:\>for /F "delims=\" %i in ('fsutil fsinfo drives|find /v ""') do (
set var=%i
set drives=!var:~-2!
md !drives!\lxmxn
)
find: invalid predicate `'
@REM The name redtek is the directory name you want to create
@REM CreateFile.Bat:
@REM ==========================================
@ECHO off
FOR %%c in (Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C) do (
IF exist %%c: (
MD %%c:\Redtek
GOTO :EOF
)
)
Originally posted by redtek at 2006-9-26 06:20:
Been waiting for the LZ to ask a question, then see the inspiration from floor 2 and 3 to write it out myself.
The memory and understanding of what others have written out versus what I write out are different.
In the end, the LZ disappeared...
Let the drive letter be...
Originally posted by redtek at 2006-9-26 06:20:
Been waiting for the original poster to ask a question and then see the inspiration from floors 2 and 3 to write it out myself,
The memory and understanding of content written by others and what I write are different,
As a result, the original poster disappeared...
Let the drive letter be...
Originally posted by redtek at 2006-9-26 06:20:
Been waiting for the original poster to ask a question and then see the inspiration from floors 2 and 3 to write it out myself,
The memory and understanding of what others have written out versus what I write out are different,
As a result, the original poster disappeared...
Let the drive letter...
Originally posted by redtek at 2006-9-26 06:20:
@REM The name redtek is the directory name you want to create
@REM CreateFile.Bat:
@REM ==========================================
@ECHO off
FOR %%c in (Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C) do (
IF exist %%c: (
MD %%c:\Redtek
GOTO :EOF
)
)
@ECHO off
FOR %%c in (Z,Y,X,W,V,U,T,S,R,Q,P,O,N,M,L,K,J,I,H,G,F,E,D,C) do (
IF exist %%c: (
MD %%c:\Redtek 2>nul && GOTO :EOF
)
)