command line with ampersand

  • Thread starter Thread starter Gordon Prince, MCP
  • Start date Start date
G

Gordon Prince, MCP

What would be the way to write this on the command line so that it works?

net stop "Backup Exec 8.x Device & Media Server"

I think the & after Device is fouling me up. I need to escape it.

Anyone know how to do that?

Thanks.
 
What would be the way to write this on the command line so that it works?

net stop "Backup Exec 8.x Device & Media Server"

I think the & after Device is fouling me up. I need to escape it.

Anyone know how to do that?
Hi

Try ^&


From the Windows help file:

^ Escape character. Allows typing command symbols as text.
 
Hi Gordon,

This doesn't answer the question, but I have a workaround which might
help...

We also have to stop and restart Backup Exec services from time to time. I
had the same problem, but found out (from Veritas news group I think) that
the following command works:

To stop all Backup Exec services

cd "C:\program files\veritas\backup exec\nt"
bemcmd -o503

To Start all Backup Exec services

cd "\program files\veritas\backup exec\nt"
bemcmd -o502

I've got these in two batchfiles - one for stopping and the other for
starting.
I'm sure you realise the 'cd' just changes to the right place to find
bemcmd.exe
The important bit is the -o option on bemcmd. If you type bemcmd /? it lists
the options for you.

This definitely works in 8.5 on NT... not sure about later versions or
platforms.

Hope this helps

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top