Jump to content

Send() sending semicolon instead of colon


bman
 Share

Recommended Posts

I have a place in my script where occasionally the send command sends a semicolon ; instead of a colon : or sometimes it sends a | instead of a backslash \. It doesnt occur all the time but only very very randomly and I am wondering if anyone else has run into a similar issue.

The line of code looks like this:

Send($WOfileloc & "WO" & $conoptions[1] & "\reviewed\" & $conoptions[2] & "\" & $PWOFilename[1] & "-e.pdf{ENTER}")

The place that gets messed up is in the WOFileloc variable and it is defined like so:

$WOfileloc = "H:\ENGLISH\Work Orders\"

so sometimes it sends "H;\ENGLISH\Work Orders\" or "H:|ENGLISH\Work Orders\"

Link to comment
Share on other sites

can you post the full script? It may have something to do with how you're assigning the values to the variables.

-B

well the full script is 719 lines long... and on top of that my boss would rather me not post the full script on the net.

-edit

also, i have found that in my script I have a few places where I use ControlSend() instead of just Send()... so I am going to start documenting when the error occurs and see if it is happening in one place and not the other.

Edited by bman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...