Solved Attrib says: Parameter format not correct -

October 1, 2012 at 12:16:45
Specs: Windows 7
Hello Everyone!
I've been trying to make a *.bat to hide a series of folders but I've been getting the error "Parameter format not correct -"

My code is:
@Echo off
color 2
attrib Data Backup +s +h
attrib Documents +s +h
attrib Personal Backup +s +h
attrib Youtube Videos +s +h

The folder "documents" successfully gets hidden but every other folder gets an error.

P.S. They're all in the same folder and they're all spelt correctly.


See More: Attrib says: Parameter format not correct -

Report •

#1
October 1, 2012 at 12:46:50
I added quotation marks to all of them - that resolved the issue.

Report •

#2
October 1, 2012 at 13:07:44
✔ Best Answer
Paths that contain spaces must be wrapped in double quotes.

Tony


Report •
Related Solutions


Ask Question