I am building virtual directories for a setup using the following:
echo "Current Drive: %~d1"
set /p var cdr="Enter Install Directory "
cd %windir%\system32\inetsrv
appcmd add vdir /app.name:"Default Web Site/" /path:/cms /physicalPath:"%cdr%:\websites\cms"
If I manually enter the drive letter instead of use cdr everything works fine. The problem I am having is that nothing is displaying. Including %~d1 is empty cdr is empty even after being set.
Im guessing I am just completely missing something here but I dont know what.