I want to create a batch file for run attrib script for pen drive.
But problem is pen drive changes.
batch file that 1st ask to write drive letter
Then run attrib script for that drive.
(my pendrive gets virus fro开发者_如何学JAVAm class that i want to clear at home by aplying attrib script below everyday
attrib -r -a -s -h /s /d
@echo off
set /p drive=Drive letter:
pushd %drive%:
attrib -r -a -s -h /s /d
popd
精彩评论