| View previous topic :: View next topic |
| Author |
Message |
newbie Member
Joined: 02 Jan 2004 Posts: 5
|
Posted: 02/01/04 12:50 Post subject: *.bat file |
|
|
Hello, I'm new in delphi.... Help me please
- How to execute a *.bat file or a *.exe
- change the some options in program tab in properties window of a *.bat file. (right-click on a *.bat file -> select Properties -> Go to Program tab: how to change some options in that tab by delphi code, or if you can, please show an example)
Thank you so much! |
|
| Back to top |
|
 |
newbie Member
Joined: 02 Jan 2004 Posts: 5
|
Posted: 03/01/04 04:53 Post subject: More |
|
|
After some actions, I found out that a *.bat file does not store its settings (in properties page), its settings are stored in a *.pif file created after I executed the bat file. Using Nc5, I found that all settings which i changed bat file is stored in that *.pif file. But now, I have no information about the *.pif file or its structure.... In the other hand, to change settings of a bat file, we must know the format or the structure of *.pif file. That's all. I'm expecting your help.
Thank you ! |
|
| Back to top |
|
 |
newbie Member
Joined: 02 Jan 2004 Posts: 5
|
Posted: 03/01/04 11:32 Post subject: Answer |
|
|
I found the answer for executing a exe file or a bat file.
procedure TForm1.Button1Click(Sender: TObject);
begin
WinExec('file1.bat',SW_SHOWNORMAL);
end; |
|
| Back to top |
|
 |
Johnny_Bit Moderator
Joined: 15 Jun 2003 Posts: 131
|
Posted: 05/01/04 11:12 Post subject: |
|
|
| pif files are almost "normal" shortcut files. i can bet, that there's some interface to operate pif files just like normal shortcuts. just it has to be found. |
|
| Back to top |
|
 |
|