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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MariusX1

    Using && with strings?

    Yes, I've thought of a couple work-arounds as well...I was just hoping that it was something I could do in one line. Thanks anyway!! Doug
  2. MariusX1

    Using && with strings?

    Is it possible to use an "and" (&&) with strings in an if statement? I know that I can do it with integers: if (a == 1) && (b == 2) ;do some stuff endif But, is it possible to do it with strings? Like: if (strfind a "foo") && (strfind b "bar") ;do some other stuff endif I haven't...
  3. MariusX1

    Cisco VPN Command Line Connection Prompt

    Thanks for the suggestion, but it didn't seem to work. I put some auto-initiation settings into my vpnclient.ini file, but it didn't seem to help. The issue is that I need to connect to 50+ connections one at a time through an automated Access DB I've created. I'm looking for some sort of...
  4. MariusX1

    Cisco VPN Command Line Connection Prompt

    Anyone have any ideas on this? My current solution is to use Winbatch to do the necessary steps, but I'd rather not use outside programs unless I absolutely have to. Thanks! Doug
  5. MariusX1

    Cisco VPN Command Line Connection Prompt

    I'm trying to automate a number of VPN connections so that I can launch them through batch files and have them connect automatically. The batch file line that does the call looks like this (where 13607 is the profile name): C:\PROGRA~1\CISCOS~1\VPNCLI~1\vpnclient connect sd 13607 It connects...
  6. MariusX1

    Splitting values into a hash

    I think I realized an error in my logic actually. What I'm really trying to do is read in a delimited file. I want the header row to become the keys of the hash array. Subsequent lines will become the values. I thought it would work like this: if ($line_count eq 1) { (keys(%my_hash)) =...
  7. MariusX1

    Splitting values into a hash

    Just a quick question. I know this can be done with more lines, but I'm wondering if it's possible to make the following work in one line. (values(%my_hash)) = split(/\|/,$line); I was hoping this would work since you can do the same thing with a regular array, but it's not working as is...
  8. MariusX1

    pcANYWHERE OLE code for VB

    Thanks sibasis! I've actually gotten a bit farther on the problem. It seems to be an issue with the environment on the remote host. I'm working on a few work arounds to make it work and I think I'll eventually get it. It's kinda just trial and error at this point, but thanks for all the help!!
  9. MariusX1

    pcANYWHERE OLE code for VB

    Thanks sibasis, It's a weird problem. I thought it might be something with my permissions on the remote machine, but I'm able to connect manually and run the batch file. So, it just doesn't make sense. I'll continue to play with it, but thanks for the help. Doug
  10. MariusX1

    pcANYWHERE OLE code for VB

    I've been following this thread for a while and it's helped me immensely with my current project. I'm trying to run 2 different programs on the Remote Host. These programs will each create a file. I then want to download the 2 files to my local machine. I created a batch file which will call...

Part and Inventory Search

Back
Top