Batch file

Posted on 2009-02-11
Last Modified: 2013-12-17
I need a batch file that will run from a cmd prompt and change the directory to c:\symantec\Symantec EndPoint Protection and stop the smc service and then copy the "Sylink.xml" file in that directory Then start the smc service.
Question by:rolani3441
    1 Comment
    LVL 2

    Accepted Solution

    This must be run with administrator priveleges (under vista, with elevated privelges as well.)
    Where X:\ is the location you would like the file copied to.

    @echo off
    cd "\symantec\Symantec Endpoint Protection"
    net stop "smcservice"
    copy sylink.xml X:\sylink.xml
    net start "smcservice"

    Open in new window


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Suggested Solutions

    I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
    In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
    This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
    An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now