What is the proper way to execute a Dos-script from a command

3 posts / 0 new
Last post
OldFart
OldFart's picture
Offline
Last seen: 3 months 1 week ago
Joined: 2010-11-30 14:09
What is the proper way to execute a Dos-script from a command

Hi,

I want to execute a DOS-script from a command. Should I use 'CreateNewProc()' or 'SystemTags()'?

OldFart

cwenzel
cwenzel's picture
Offline
Last seen: 5 months 1 week ago
Joined: 2021-01-12 07:05
Re: What is the proper way to execute a Dos-script from a...

SystemTags() creates a fully functional shell-handler process.
CreateNewProc() just creates a basic generic new DOS process.
SystemTags() actually calls CreateNewProc() internally to start
the shell process up. (FYI).

Since you want the shell-handler to execute a shell script,
a shell-handler process would be my first choice.

OldFart
OldFart's picture
Offline
Last seen: 3 months 1 week ago
Joined: 2010-11-30 14:09
Re: What is the proper way to execute a Dos-script from a...

Ok, so I applied SystemTags() successfully, meaning the called file gets executed. But now I want to modify the called file in order to make it do something more usefull (Just waiting 5 secs makes not much sense, does it?).

However, upon saving that file I get a message that "the object is in use somewhere and can therefore not be saved". Normally this means that it is opened in MultiView, but that is not the case here.

Is there a Lock() on that file remaining?

EDIT: Yes, there was a Lock still in place, as a left-over from a check-for-excistence.
And there were even a few more Locks in place...

EDIT: Hm, UnLock()-ing these Locks does not change much...

OldFart

Log in or register to post comments