VBS

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Is there a way to use put a working VBS script into VB.Net version 2003? I
would like to compile it.
 
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.
 
If that isn't possible, is there a way to convert a VSBS script into
something that can be compiled into an EXE?
 
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
 
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.
 
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.
 
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
 
Back
Top