Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2008, 02:10 PM
Maprwz Maprwz is offline
Junior Member
 
Join Date: Jun 2008
Posts: 14
Question case sensitive question

Is 'If $Extension$ = "BAT"' case sensitive?
Would both BAT and bat be true?

If not is there some kind of tag we can use so that we only need one IF statement?
Reply With Quote
  #2 (permalink)  
Old 06-10-2008, 03:19 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

You can create a vb script that would convert and return the extension into upper case. Then using 'Run Script command' call vb script from task. In that way you need only one 'If' statement.

For your convenience, we have attached vb script and task file that calls that script. Please copy task file under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Copy .vbs file under C:\.

Hope that helps.
Attached Files
File Type: zip UCase.zip (441 Bytes, 9 views)
Reply With Quote
  #3 (permalink)  
Old 06-10-2008, 02:52 PM
Maprwz Maprwz is offline
Junior Member
 
Join Date: Jun 2008
Posts: 14
Thumbs down

I unzipped the file into my "My Tasks" directory along with the task that I am running.
The .VBS was:

Dim temp
temp = UCase (WScript.Arguments.Item(0))
WScript.StdOut.WriteLine temp
I inserted your Run Script as follows:
Variable Operation : C:\Wrappers\AutoAnywhere To $ROOTDIR$
Start Loop " Each File in $ROOTDIR$\BatFiles"
Run Script "GetUCase.vbs $Extension$, $BAT$"
If $BAT$ Equal To "BAT" Then
$BAT$ was defined in Variable Manager as a VALUE variable with initial value of xxx

but I keep getting an error message with:
WindowTitle: Windows Script Host
Message: Error In Script - 13 Type mismatch
Attached Images
File Type: gif TypeMismatch.gif (4.5 KB, 0 views)

Last edited by Maprwz; 06-10-2008 at 02:59 PM.
Reply With Quote
  #4 (permalink)  
Old 06-11-2008, 03:26 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

What you can do is,

. Open your task in a task Editor. Select your task from task list and click on 'Edit' button located at top.
. Double click on 'Run Script' command.
. Click on 'Browse' button and select path where GetUCase.vbs is located on your machine. In 'Select Script' textbox, you also have to specify the path of script along with script name.
. Save the Command.
. Save the Task and run it.

Please let us know how it goes.
Reply With Quote
  #5 (permalink)  
Old 06-11-2008, 08:01 AM
Maprwz Maprwz is offline
Junior Member
 
Join Date: Jun 2008
Posts: 14
Thumbs up That works

Thank you.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 08:23 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved