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...
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...
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
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...
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)) =...
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...
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!!
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
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.