
sort of off topic: AutoIt question
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Try this:
DAQViewerCommand = Chr(34) & "C:\DAQ32 Plus\DWViewerE.exe" & Chr(34)
- - or -
oShell.Run Chr(34) & DAQViewerCommand & Chr(34)
B-Mann
Quote:
> Any AutoIt users here?
> I'm trying to use AutoItX in a VBScript. I need to open and then
> send some commands to a proprietary piece of software that doesn't
> seem to handle automation any other way.
> The problem is that I can't figure out how to send a pathname that
> has a space in it. I want to send "C:\DAQ32 Plus\DWViewerE.exe"
> but all that gets sent is "C:\DAQ32" (I have both directories on
> the system).
> Any Ideas?
> I'm trying to use the following kind of code to open up the
> application:
> [just a snippet shown here]
> Dim DAQViewerCommand
> DAQViewerCommand = "C:\DAQ32 Plus\DWViewerE.exe"
> Dim oShell
> Dim AutoIT
> Set oShell = Wscript.CreateObject("WScript.Shell")
> Set oAutoIt = Wscript.CreateObject("AutoItX.Control")
> msgbox DAQViewerCommand
> oShell.Run DAQViewerCommand
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPAy4LisB0E0py/kZEQIKIACgh1s9OnkV4DcsCInrXEP4dhT2EDMAoLZc
UNx+zlzdsnWZbNWqCNcCFh/Y
=C0kx
-----END PGP SIGNATURE-----