Hey All, Im new to CASL scripting language and I was wondering if someone could give me an example of a macro that would download a file, rename it and then download it to my hard drive?
We use File Xpress and every day I have to download files from a server to my hard drive and I was wondering if I could automate this process with a CASL macro. I download the files from the INFOConnect session by clicking the file and download and then I rename it and download it to my hard drive, hopefully there is a way to automate this.
Sorry I am not familiar with File Xpress. Can you record the steps via Tools> Learn Casl Macro *perform steps manually* Tools> Stop Casl Learn and post the code?
Wow, I'm having amnesia and deja vu at the same time.
I think I've forgotten this before.
I was also wondering about that too, because I got the generic hello macro that came with Attachmate to work on startup but the problem is that the session that I want to put the macro on does not have "Learn CASL Macro" option on it, it only has the "CASL Macro" option, is there a way to change the settings to Add the Learn CASL Macro option?
CASL does have some functionality to run different applications, but it's not great. You would type
Code:
Run "C:/AnyFile.exe"
As far as I know, you cannot run a file that has any spaces in the file path, so you might need to move your exe around, if possible. I also don't think you can pass arguments to another application; you can run the executable. I would investigate a scheduled task instead; if you use windows, you should be able to create a scheduled task that runs automatically.
[blue]Never listen to your customers. They were dumb enough to buy your product, so they have no credibility. - Dogbert[/blue]
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.