Re: Trigger CuteFTP macro from .vbs
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 10/26/04
- Previous message: jason_at_catamaranco.com: "Trigger CuteFTP macro from .vbs"
- In reply to: jason_at_catamaranco.com: "Trigger CuteFTP macro from .vbs"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 26 Oct 2004 17:10:05 +0200
jason@catamaranco.com wrote:
> Could someone help me create a simple .vbs script to execute
> this command line CUTEFTP macro:
>
> "C:\Program Files\GlobalSCAPE\CuteFTP\CutFTP32.exe"
> Macro=c:\Pricing_Lagoon.mcr
>
> I tried slamming this in a .vbs extension file but got an error...
> must be more to it!
Hi
'--------------------8<----------------------
Set oShell = CreateObject("WScript.Shell")
' Inside a quoted string, use two quotes to get one effective.
sCmd = """C:\Program Files\GlobalSCAPE\CuteFTP\CutFTP32.exe""" _
& " Macro=c:\Pricing_Lagoon.mcr"
' Launch the command and wait for it to finish
oShell.Run sCmd, 1, True
'--------------------8<----------------------
WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx
- Previous message: jason_at_catamaranco.com: "Trigger CuteFTP macro from .vbs"
- In reply to: jason_at_catamaranco.com: "Trigger CuteFTP macro from .vbs"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|