DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

*.bat file

 
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming
View previous topic :: View next topic  
Author Message
newbie
Member


Joined: 02 Jan 2004
Posts: 5

PostPosted: 02/01/04 12:50    Post subject: *.bat file Reply with quote

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
View user's profile
newbie
Member


Joined: 02 Jan 2004
Posts: 5

PostPosted: 03/01/04 04:53    Post subject: More Reply with quote

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
View user's profile
newbie
Member


Joined: 02 Jan 2004
Posts: 5

PostPosted: 03/01/04 11:32    Post subject: Answer Reply with quote

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
View user's profile
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 131

PostPosted: 05/01/04 11:12    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> Delphi Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group