A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

script runtime in 2003



 
 
Thread Tools Display Modes
  #1  
Old May 21st, 2004, 07:51 PM
ari
external usenet poster
 
Posts: n/a
Default 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  
Old May 21st, 2004, 10:07 PM
Albert D. Kallal
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.