Sure there is. Follow this link and Symantec will help you out.
In the future you may want to check out .vbs files in an attachment a little closer. You can open then in notepad and check them out before running them. Viewing the code can teach you a lot. Just don't use the information to...
Here is a snip of code I wrote for a filecopy routine in VBS. They should work fairly the same in VB (Some modifications my be needed. ;) )
dim dtmMonth, dtmDay, dtmYear, dtmMDY
dtmMonth = Month(date)
dtmDay = Day(date)
dtmYear = Year(date)
dtmMDY = dtmMonth & "-" & dtmDay &...
Just a shot in the dark here... Variables in ASP or VBScript are of type Varient so you would need to declare it as such in the VB componet to pass it over correctly.
In your ASP code you probably have the variable set up like this.
Dim Variablename
Declare it exactly the same in your VB...
I'm glad I could help.
Here is a couple of links you might find useful. :)
http://msdn.microsoft.com/scripting/vbscript/techinfo/vbsdocs.htm
And the next own is a downloadable ref manual for VBScript. I've found it extremely helpful...
Here is another method.
dim dtmMonth, dtmDay, dtmYear, dtmMDY
dtmMonth = Month(date)
dtmDay = Day(date)
dtmYear = Year(date)
dtmMDY = dtmMonth & dtmDay & dtmYear
A format function would be much nicer. :)
How are you performing the copy? I had some fun as well when I first tried to do that with many different servers. It turned out to be all in the syntax.
Try this in a sub
------
Public Sub CopyMe()
dim filesys, Target, Source, ServerName
' change the variables to suit your needs
Target =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.