locked
Command prompt in win7 RRS feed

  • Question

  • What is the difference between the command "del %temp% -f -s -q" and "del %temp% /f  /s  /q" in the command line?
    Tuesday, April 23, 2013 7:25 AM

Answers

  • I'm sorry I really didnt get you. All I wanted to know is the difference between "-" and "/" in command prompt.


    Attribute Description

    r

    Read-only

    a

    Archive

    s

    System

    h

    Hidden

    -

    Prefix meaning "not"

    when you use - for example in command  -h it not hidden 

    or assume this command

    del \work -h : it don't delete  hidden file in work folder 

    del \work h : it delete hidden file in work folder

    / is different - and doesn't relate to each other .

    when you use / you specify and action .


    Dear Problems ,You May Big But My God Is Bigger.


    • Edited by YahyaZahedi Wednesday, April 24, 2013 2:00 PM
    • Marked as answer by bliss888 Thursday, April 25, 2013 10:35 AM
    Wednesday, April 24, 2013 1:59 PM

All replies

  • What is the difference between the command "del %temp% -f -s -q" and "del %temp% /f  /s  /q" in the command line?

    when you use for example -f in command it Not 

    Force deleting of read-only files.

    and when you use /f it Force deleting of read-only files.

    For more info see following link.

    Del (erase)


    Dear Problems ,You May Big But My God Is Bigger.

    Tuesday, April 23, 2013 7:43 AM
  • I'm sorry I really didnt get you. All I wanted to know is the difference between "-" and "/" in command prompt.
    Wednesday, April 24, 2013 1:43 PM
  • I'm sorry I really didnt get you. All I wanted to know is the difference between "-" and "/" in command prompt.


    Attribute Description

    r

    Read-only

    a

    Archive

    s

    System

    h

    Hidden

    -

    Prefix meaning "not"

    when you use - for example in command  -h it not hidden 

    or assume this command

    del \work -h : it don't delete  hidden file in work folder 

    del \work h : it delete hidden file in work folder

    / is different - and doesn't relate to each other .

    when you use / you specify and action .


    Dear Problems ,You May Big But My God Is Bigger.


    • Edited by YahyaZahedi Wednesday, April 24, 2013 2:00 PM
    • Marked as answer by bliss888 Thursday, April 25, 2013 10:35 AM
    Wednesday, April 24, 2013 1:59 PM
  • Thank you very much bro... :D

    Thursday, April 25, 2013 10:36 AM