Hi everyone!

I'm writing trojan/virus for educational purposes only. That is my final practical work.

The problem is that i need to fire up a .vbs file from disk.To do that i need path. How to find path and save it to string variable. Even bigger problem is how to execute it, when i save it to the variable.

For executing i have used this function:

Process.Start("C:\Script.vbs")

I tried to save this path to variable and execute it like this:

Dim path_string as String
path_String = "C:\Script.vbs"
Process.Start(path_String)

Guess what happened?!

Any help will be appreciated!

Recommended Answers

All 2 Replies

Guess what happened?!

You got infected and did you not create the anti-virus yet? ;)

Any help will be appreciated!

Help with what exactly? The above is correct. does it give any error?

Well nothing happened, there was an error.
I figured it out by myself.
TNX anyway!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.