If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
script runtime in 2003
Hey all,
I just moved from Access 2000 to 2003 and an application of mine doesn't work anymore. It's using VBA which is running vbscript which is running an ftp command. Any ideas on why? (Here's some code Dim o As Object Dim stSrcFile As String Dim shortNamePath As String Dim gu As New GeneralUtilities shortNamePath = gu.GetShortName(CurrentProject.Path) stSrcFile = shortNamePath & "aScrFile.scr" Set o = CreateObject("wscript.shell") 'Take the 0 off the statement below to see Dos window o.Run "ftp -s:" & stSrcFile, 0, True thanks in advance, ari |
#2
|
|||
|
|||
script runtime in 2003
Try creating the script in a simple stand alone text file. Use notepad to
create you file (test.txt). Then simply type in: Set o = CreateObject("wscript.shell") o.Run "ftp -s:" & stSrcFile, 0, True Now, re-name the text file with a .vbs extension. You can now run the script...does it work? Also, once you saved (or re-named) the text file..you can right click on it to edit it... -- Albert D. Kallal (Access MVP) Edmonton, Alberta Canada http://www.attcanada.net/~kallal.msn |
Thread Tools | |
Display Modes | |
|
|