Hello

Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: /n switch will not work in cmd prompt  (Read 753 times)

Offline Richard
  • Full Member
  • ***
  • Posts: 131
  • Karma: +10/-0
    • http://
/n switch will not work in cmd prompt
« on: June 16, 2004, 01:56:23 PM »
trying to create this batch file:

del C:\\Documents and Settings\\Recent\\*.* /n
del C:\\Documents and Settings\\Cookies\\*.* /n
del C:\\Documents and Settings\\Local Settings\\Temporary Internet Files\\*.* /n
del C:\\Documents and Settings\\Local Settings\\History\\*.* /n
cleanmgr /sagerun: 1
C:\\WINDOWS\\Prefetch\\*.* /n

Profile directory name left out intentionally.

I read that a /n switch will answer yes to the "Are you sure" prompt.

I tried /y and |y

cmd says /n etc. is an invalid switch.

Thank you for you time.

This batch file is being attempted on an XP proffesional sys
Friends Don\'t Let Friends Use AOL.

Offline mm
  • clyde\'s boss
  • Legendary Member
  • ******
  • Posts: 15576
  • Karma: +10/-0
    • http://
/n switch will not work in cmd prompt
« Reply #1 on: June 16, 2004, 03:24:13 PM »
try echo y | before command

my dos is rusty
\"Leave the gun. Take the cannoli.\" - Clemenza

Offline Richard
  • Full Member
  • ***
  • Posts: 131
  • Karma: +10/-0
    • http://
/n switch will not work in cmd prompt
« Reply #2 on: June 16, 2004, 07:43:48 PM »
Thank you.  I had tried  echo y | , but only after the command.
« Last Edit: June 16, 2004, 07:46:43 PM by Richard »
Friends Don\'t Let Friends Use AOL.

 

SMF spam blocked by CleanTalk