Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WSH script sending parenthesis problem 1

Status
Not open for further replies.

JustLJ

MIS
Oct 15, 2002
70
US
Using a WSH script to do a FTP from the host, one of the files is a generation file which has to be referenced within parenthesis, when it's processed, the () is lost. I've tried signle quote, double single quotes, double quotes, etc., to no avail. Anybody have any thoughts about how to send a parenthesis to the host via the script?

Thanks.
LJ
 
you could try chr40 and chr41

Regards
Steve Friday
 
Thanks for the tip Steve, but it doesn't recognize the () for the Chr function either.

Really weird!
LJ
 
As an update for anyone coming to this message in need of the information, I found that using braces {} around each parenthesis worked;
i.e. (something) would be: {(}something{)}

HTH.
LJ

 
What the heck???

It almost looks like you are using SendKeys to try to automate ftp.exe or something.

SendKeys is a very fragile way to do this anyway. I'd try using MS's Inet control to do the FTP or else create a command file for ftp.exe and use the "-s" switch with it.

Sometimes even better.. use Exec instead of Run to invoke ftp.exe, and send commands to the stdin stream.

But maybe I'm reading too much into this. Were you ftp-ing some other way?
 
"dilettante (MIS) Apr 25, 2003
What the heck???

It almost looks like you are using SendKeys to try to automate ftp.exe or something.

SendKeys is a very fragile way to do this anyway. I'd try using MS's Inet control to do the FTP or else create a command file for ftp.exe and use the "-s" switch with it.

Sometimes even better.. use Exec instead of Run to invoke ftp.exe, and send commands to the stdin stream.

But maybe I'm reading too much into this. Were you ftp-ing some other way? "

No, you weren't reading too much into this. Thanks for the tip with FTP.exe, because that's exactly what we were doing. With your tip we were able to switch to BAT files which are much easier to run from within our Access macro's.

Thanks for taking the time to read and reply. Enjoy your star.
LJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top