Search found 1 match
- 11 Sep 2016 10:03
- Forum: DOS Batch Forum
- Topic: Batch file, prompt drive letter
- Replies: 3
- Views: 3700
Batch file, prompt drive letter
Hi folks. I've been trying this code that deletes all files and folders within a specific location, and in case the drive wasn't mounted, it should prompt the user to enter a drive letter, here:[/b] @echo off set folder="x:\" IF EXIST "%folder%" ( cd /d %folder% for /F "deli...