PSX5Central

Non Gaming Discussions => Off-Topic => Topic started by: Richard on June 16, 2004, 01:56:23 PM

Title: /n switch will not work in cmd prompt
Post by: Richard 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
Title: /n switch will not work in cmd prompt
Post by: mm on June 16, 2004, 03:24:13 PM
try echo y | before command

my dos is rusty
Title: /n switch will not work in cmd prompt
Post by: Richard on June 16, 2004, 07:43:48 PM
Thank you.  I had tried  echo y | , but only after the command.