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

VI from bat file

Status
Not open for further replies.

richcwi

Programmer
Feb 6, 2007
16
US

Have a VI job which I am running from a batch file (.bat) and it runs fine on the machine running the MAS host process (our MAS Server). When I run it from a remote PC it bombs.

The remote PC has the MAS client and has drive "P:" mapped to the MAS Server machine where mas90 is installed.

We are running MAS 3.71

The commands in the .bat file are:

cd ..\HOME
PVXWIN32.EXE ..\LAUNCHER\SOTA.INI ..\SOA\MAS90 -ARG ..\VI\VIWI0X W 0 DIRECT AUTO CWI

From the remote PC I change directory to P:\SMART (which is a dir we created to hold our batch files) and run SYNC_IM.BAT which is a file we created with the commands above.

The error dialog pops up with:
Error 14 in program VIWLOG at line 0110

when I hit "Info" on the error dialog another tabbed dialog comes up with:

Error #14: Invalid I/O request for file state
Program VIWLOG Line 0110

Any Clues would be appreciated.

Thanks,
Rich



 

Changed the batch file to:

p:
cd ..\HOME
"C:\Program Files\Best\90cs\MAS90\HOME\PVXWIN32.EXE" P:\LAUNCHER\SOTA.INI P:\SOA\MAS90 -ARG P:\VI\VIWI0X W 0 DIRECT AUTO CWI

and run it the same way as mentioned above and it works.....

Wonder why?
 
You have to change to the drive and then change to the directory and then call the program. Here is how I do it from Access:

ChDrive "M"
ChDir "M:\Mas90\HOME"
Shell ("M:\MAS90\HOME\PVXWIN32.EXE ..\LAUNCHER\SOTA.INI ..\SOA\MAS90 -ARG ..\VI\VIWI0F W O DIRECT MANUAL HHA")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top