1.

Solve : I need help with parameters?

Answer»

I am trying to correctly use the ATTRIB command in MS dos. I keep getting a message that says: "Parameter format not correct". I am trying to open a file that is locked, and ATTRIB seems to be the only method of opening it, but I cannot get it to WORK. Here is exactly what I TYPE:
>>attrib -r -a -h -s C:\Documents and Settings\Owner\My Documents\My Pictures [BRANDON] /s
that command should allow me to open the file, but it says my parameter is incorrect. Please tell me what I am doing wrong and tell me EXACTLY what I need to type instead, tell me what spaces I need and dont need, and such. PLEASE HELP!!!!The first four attributes are fine, but the path to the file is a mess. First of all who or what is a [Brandon]? Owner is a variable that should be SET equal to the login name of the user.

Only use the /s switch if you need to drill down the directory tree looking for matches.

If you would post a specific file name, perhaps someone could give you exactly what you need.

Hope this helps. "Brandon" is the file I need to open but is locked, hence the reason I am trying to perform ATTRIB prompt.Code: [Select]
attrib -r -a -h -s "C:\Documents and Settings\Owner\My Documents\My Pictures\Brandon"


If Brandon has no extension then the code is fine as written otherwise add it within the quotes. If Brandon has those [] around the name you will need to include them too.

If the word Owner is a literal value in the path then you're OK, otherwise replace it with a real value or use the %UserName% variable.

The /s switch is usually USED with wild cards to drill down the directory. If you don't need it leave it out.

Good luck.



Discussion

No Comment Found