#44703 - 2003-09-02 09:07 PM
Implementing virus tools network-wide
|
Shaggydog
Fresh Scripter
Registered: 2003-05-20
Posts: 31
Loc: Mississauga, ON
|
Hi.
Due to the problems we've had with the viruses around the company,I'm being asked to create a script that will copy a file from our server to a local machine, and then to run that file from the local machine.
Anythoughts?
Thanks for your help. Shaggy
|
Top
|
|
|
|
#44704 - 2003-09-02 09:09 PM
Re: Implementing virus tools network-wide
|
Shaggydog
Fresh Scripter
Registered: 2003-05-20
Posts: 31
Loc: Mississauga, ON
|
I also would like to build an if statement around the entire function.
I'd like for the script to look to see if the file is already present in the dir. that would mean the script had already run it once, and would not need to again.
Thanks again
|
Top
|
|
|
|
#44708 - 2003-09-02 09:17 PM
Re: Implementing virus tools network-wide
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
quote:
You could copy a txt file or so along with the program file. Do a check if the txt file exists before copying the program file to avoid double copying.
Why? Why not look for a Reg Key or value?
Kent
|
Top
|
|
|
|
#44710 - 2003-09-02 09:28 PM
Re: Implementing virus tools network-wide
|
Shaggydog
Fresh Scripter
Registered: 2003-05-20
Posts: 31
Loc: Mississauga, ON
|
We use Norton Antivirus corporate edition here at our headquarters. Trouble is that we never got the funding to buy the extra licenses for the plants out of town. Anyways, here's where I'm at.
Copy "f:\FixVirus.exe" "C:\temp"
That, according to my manual, should work. How would I go about coding that check for filename?
|
Top
|
|
|
|
#44713 - 2003-09-02 10:00 PM
Re: Implementing virus tools network-wide
|
Shaggydog
Fresh Scripter
Registered: 2003-05-20
Posts: 31
Loc: Mississauga, ON
|
Apparently this is a file that will only run with administrative rights. I tried doing run "C:temp\FixVirus.exe" /user:administrator /password:blahblahblah
Doesn't seem to run.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 466 anonymous users online.
|
|
|