Home > Software engineering >  I want to use system in c command to delete a folder, but to "invalid switch - the User"
I want to use system in c command to delete a folder, but to "invalid switch - the User"

Time:10-09

RT
System (rd/s/q "path")
This result is not very understand, I again as an administrator to run the IDE, the result is this,,,

Thank you very much!

CodePudding user response:

I done, execute the command in the CMD path is to use backslash, rather than slash,,,,,,,,

CodePudding user response:

Print the command executed, then see is accurate to the command line

CodePudding user response:

reference 1st floor baidu_29001253 response:
myself done, execute the command in the CMD path is to use backslash, rather than slash,,,,,,,,

Backslash have to repeat it twice!

CodePudding user response:

reference zhao4zhong1 reply: 3/f
Quote: refer to 1st floor baidu_29001253 response:

I done, execute the command in the CMD path is to use backslash, rather than slash,,,,,,,,

Backslash have to repeat it twice!


Yes, because is escaping,

It is strange that if this is the mkdir command, use slash, instead of using the system need a backslash, strange,

CodePudding user response:

Windows using backslash "".
Linux USES slash '/'
  • Related