[GiDlist] About the command application and the batch file

Moderator: GiD Team

Post Reply
Andreas Friedberg

[GiDlist] About the command application and the batch file

Post by Andreas Friedberg »

Hi everybody,

I've written a GiD-extension for tochnog and I am trying to run tochnog as an external program from within GiD 7.0. I'm working with GiD on two operating systems: win2000 and win2000NT. Since I've implemented a batch file for my extension (I have sent this file to you in a previous email), I have problems to make it work properly within GiD. First, I thought there was a problem with my batch file, but I realised that it works well on the win2000NT operating system when one condition is met:

I have removed the command.exe file within the GiD directory and replaced it by the command.com file of win2000NT. If I leave the command.exe file in the GiD directory, my batch file isn't executed, neither by the command.exe of GiD, nor by the command.com of win.

Now this works well on win2000NT, since the batch file is recognized and executed. The only problem is the fact that while executing the batch file, GiD seems to create two local hardrives with respectively the Project and the problemtype directory installecd on them:

f:\Project\...
g:\problemtype\...

This does not seem to affect win2000NT, since with every calculation two new local harddrives are created and the calculation is executed. All I have to do after the calculations is to reboot the system to cancel these local harddrives.

When I try to do the same on win2000, I get two error messages of following type:

1. problems creating process: 0x1f.: a hardware connected to the system does not function

2. Error executing
c:\Programme\GiD7.0\problemtypes\tochnog_automated7.gid\tochnog_automated7.bat bruchlast2d
f:\bruchlast2d.gid
g:\tochnog_automates7.gid
c:\Programme\GiD7.0\GiD.exe

bruchlast2d is the name of the project I've worked on and tochnog_automated7.gid the problemtype directory.
win2000 doesn't seem to recognize these newly created harddrives, and GiD stops the calculation.

I guess there must be some kind of error concerning the paths assigned to the project and problemtype directory in some tcl-script. Or did I get things completely wrong?

best regards,

Andreas Friedberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020730/1c839bdc/attachment.htm
Ramon Ribó

[GiDlist] About the command application and the batch file

Post by Ramon Ribó »

Hello,

You are just discovering the kind of problems that made us create the
command.exe.
Windows is not reliable in its use of BAT files and we had to develop an
alternative
solution.

My personal advice is to use command.exe. If if does not work for you,
make the necessary
modifications to your .bat file until it does. If you are not able to do
them, post your .bat file
in this list and we shall try to help you.

Regards,
--
Compass Ing. y Sistemas Dr. Ramon Ribó
http://www.compassis.com ramsan at compassis.com
c/ Manuel Girona, 61 bajos tel. +34 93 204 10 82
08034 Barcelona, Spain fax. +34 93 204 19 09

-----Mensaje original-----
De: gidlist-admin at gatxan.cimne.upc.es
[mailto:gidlist-admin at gatxan.cimne.upc.es]En nombre de Andreas Friedberg
Enviado el: lunes, 30 de julio de 2001 15:50
Para: gidlist at gatxan.cimne.upc.es
Asunto: [GiDlist] About the command application and the batch file


Hi everybody,

I've written a GiD-extension for tochnog and I am trying to run tochnog as
an external program from within GiD 7.0. I'm working with GiD on two
operating systems: win2000 and win2000NT. Since I've implemented a batch
file for my extension (I have sent this file to you in a previous email), I
have problems to make it work properly within GiD. First, I thought there
was a problem with my batch file, but I realised that it works well on the
win2000NT operating system when one condition is met:

I have removed the command.exe file within the GiD directory and replaced
it by the command.com file of win2000NT. If I leave the command.exe file in
the GiD directory, my batch file isn't executed, neither by the command.exe
of GiD, nor by the command.com of win.

Now this works well on win2000NT, since the batch file is recognized and
executed. The only problem is the fact that while executing the batch file,
GiD seems to create two local hardrives with respectively the Project and
the problemtype directory installecd on them:

f:\Project\...
g:\problemtype\...

This does not seem to affect win2000NT, since with every calculation two
new local harddrives are created and the calculation is executed. All I have
to do after the calculations is to reboot the system to cancel these local
harddrives.

When I try to do the same on win2000, I get two error messages of
following type:

1. problems creating process: 0x1f.: a hardware connected to the system
does not function

2. Error executing

c:\Programme\GiD7.0\problemtypes\tochnog_automated7.gid\tochnog_automated7.b
at bruchlast2d
f:\bruchlast2d.gid
g:\tochnog_automates7.gid
c:\Programme\GiD7.0\GiD.exe

bruchlast2d is the name of the project I've worked on and
tochnog_automated7.gid the problemtype directory.
win2000 doesn't seem to recognize these newly created harddrives, and GiD
stops the calculation.

I guess there must be some kind of error concerning the paths assigned to
the project and problemtype directory in some tcl-script. Or did I get
things completely wrong?

best regards,

Andreas Friedberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listas.cimne.upc.edu/pipermail/gidlist/attachments/20020731/ee2805a3/attachment.htm
Post Reply