I am new here and I was wondering if someone could help me out here. For school I have to create a batchfile that checks if a directory exists, and if not creates one with the name given by the user.
Now It does all that, but it should automaticly convert the directory name to Capitals, and I can't get it to work.
I have found many solutions for this problem, just none of them works (or I can't get it to work

@ECHO OFF
echo give directory name
SET /P directory name=
IF NOT EXIST %directory name% GOTO execute program
dir /o /ad /w %directoryname%
SET /p answer=continue (y/n)
IF /i %answer%==j goto stop
:execute program
MD %directory name%
FOR /F %%1 IN (studenten.txt) DO MD %directory name%\%%1
goto end
:stop
CD %directory name%
DIR
:end
I had to translate some of the words like directory name from my native language, the transaltion may be not entirely correct,
but so far the batch file works perfect, its just the capitals I can not make them work.
thanks a lot in advance people
Guy