VBS

D

Dave

Is there a way to use put a working VBS script into VB.Net version 2003? I
would like to compile it.
 
H

Herfried K. Wagner [MVP]

Dave [email protected]> said:
Is there a way to use put a working VBS script into VB.Net version 2003?
I
would like to compile it.

That's not possible. VBS is a scripting language and has little in common
with the Visual Basic .NET programming language.
 
D

Dave

If that isn't possible, is there a way to convert a VSBS script into
something that can be compiled into an EXE?
 
C

Cor Ligthert

Dave,

Just try it, it is not impossible, however it depends what you want to do
and how much you want it optimized. You will for sure probably have to
change a lot

When you want help at least you will have to tell what your VBS script does,
because the most used, it is probably in a classic serverside ASP
environment.

Cor
 
D

Dave

I have a script that reads a directory on a server for a certain file
type(PPT). It copies the file to the local machine and then runs the file.
It then deletes the file.

I didn't think it would be too difficult to do in VB.Net, but then again,
I'm not a programmer. The last time I used VB, it was VB4. I loaded VB.Net
and became quickly confused by everything in there.
 
L

Lucas Tam

I didn't think it would be too difficult to do in VB.Net, but then
again, I'm not a programmer. The last time I used VB, it was VB4. I
loaded VB.Net and became quickly confused by everything in there.

Yes, VB.NET is radically different from VB 4 - it uses OO concepts that may
not be familiar to you.

You can always stick with VB6? VB6 still works pretty well for the most
part... but I'm not sure if you can still buy VB6 or not.
 
C

Cor Ligthert

Dave,

Trying to compile that script in VBNet would in my opinion take more time
than making that yourself new.

Moreover on MSDN are a lot of samples and than specialy in the file,
fileinof, directoryinfo classes.

Have a look at that fileinfo class
http://msdn.microsoft.com/library/d...pref/html/frlrfsystemiofileinfoclasstopic.asp

In that page are a log of links to other samples and probably you can copy
almost everything just from those pages.

I hope this helps?

Cor
 
D

Dave

Thanks for everything. I will look at the MSDN page and see what I can
figure out.
 

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

Top