Need Help on Batch file

Status
Not open for further replies.

szavala

Beta member
Messages
1
I am working on creating a batch file to test our contingency plan operations for our Antivirus software on our client systems and proper response from our users when a threat has been detected by the AV software within our network. I know how to create a basic batch file to create a file with text to the local client workstation drive. The problem I am having is I am trying to create a file with the following text written to the file by "EICAR":

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

This will trigger the Antivirus on the clients machine. This is what I am needing to test our contingency plans quarterly. I am having trouble creating this batch file. Can someone with good knowledge of batch files give me a hand with this or offer other alternatives? My operating system is XP Pro.

Thank you in advance.
 
So you want the text

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

put in a file called EICAR

I'm not going to ask why but here goes
Code:
echo X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* >EICAR

or

Code:
echo X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* >>EICAR

if you want to append.
 
Status
Not open for further replies.
Back
Top Bottom