×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Run an executable after VI Import is successful

Run an executable after VI Import is successful

Run an executable after VI Import is successful

(OP)
Hi all. We have MAS 200 version 4.05.

We have a VI job that imports some pricing and I want to be able to run a batch file once the VI job is successful. When the batch file is run it updates a field in a table via a SQL 2000 DTS.

I've been trying to do this with the Perform button in the Configuration tab in the VI job, but I think I'm missing something.

I've tried the following:

Command = ~Update_Flag.exe
Perform On = Success

Command = C:\~Update_Flag.exe
Perform On = Success

Command = C:\Update_Flag.exe
Perform On = Success

Nothing seems to work. Any ideas?

Thank you in advance.

 
Replies continue below

Recommended for you

RE: Run an executable after VI Import is successful

The command line should be relative to the server. You can also try using the UNC patch such as ..\VI\Update_Flag.exe with the exe in the VI folder on the server.

RE: Run an executable after VI Import is successful

(OP)
Thanks for the reply BigLouie, does that mean that the VI job has to be run from the server?

RE: Run an executable after VI Import is successful

(OP)
I placed the .exe in the VI folder on the server and then went to Import Job Maintenance, selected the import job and then clicked the Perform button.

In the Command box I typed: ..VI\Update_Flag.exe

For Perform On: Job Start (to make sure it works after that I will change it to Success)

Clicked on Add and it appears in the Command List. I then tried to run the VI job and I get the following error:

File..VI.VI2JOB.SOA not found.

I know the .exe works because if I click it, it runs fine.

What could be happening?

RE: Run an executable after VI Import is successful

(OP)
I had the command line incorrect, fixed it: ..\VI\Update_Flag.exe

Now I get the following error: Error 17 in program at line 65000

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close