Unsolved
This post is more than 5 years old
6 Posts
0
2235
July 28th, 2010 08:00
Scripting with NW 7.6
Hello, I'm trying to write a batch file to automatically remove certain SSID's from my advanced file type devices. When I use the nsrmm -d -S 12345678 cmd you get the prompt asking if you want to remove the files from the MMD as well and to answer either yes or no. Does anyone know how to always answer yes in the batch file without having to physically type it every single time? Here is what I'm trying.
nsrmm -d -S 12345678
y
exit
so when I execute my file nsrmm -d -S 12345678 will appear fine but I'll get a prompt to answer yes or no. I have to hit y and then enter and then another y will get typed out on another line before the batch file finishes. Is there a switch in the nsrmm function to automatically choose yes?
I'm running windows 2003 sp2 with networker 7.6.
Isaac


Abdelghany1
25 Posts
0
July 29th, 2010 00:00
Hello
There Is no switch in the nsrmm function to automatically choose yes
but simply you can use echo y for your command using pipe
C:\>echo y|nsrmm -d -S 12345678
this will provide auto answer
Thanks
Ahmed Abdelghany
yzabary
18 Posts
0
August 1st, 2010 04:00
Did you try nsrmm -y -d -S 12345678 ?
It works for me with nsrmm -y -orecyclable volume