Solved

Version information

Posted on 2006-11-24
3
179 Views
Last Modified: 2010-04-16
Hi all,
Can we set version information in EXE made of a pascal programme same as we make version controlled build of delphi programme using Project->options->Version Info ?

Regards
Sjan
0
Comment
Question by:Asmitagoyal
  • 2
3 Comments
 
LVL 6

Expert Comment

by:My name is Mud
ID: 18007920
Not quite like it... but you can make it like an option like MyExe.exe /v or -v or -version
0
 
LVL 6

Accepted Solution

by:
My name is Mud earned 100 total points
ID: 18007971
Const
  Version='3.45';
Var
  I: byte;
begin
  if ParamCount <> 0 then
    For I:=1 to ParamCount do
      Begin
        If (ParamStr(I) = '-v') or
           (ParamStr(I) = '/v') or
           (ParamStr(I) = '-version') or
           (ParamStr(I) = '/version') then
          WriteLn('Version n°: ',version)
      End
end.
0
 
LVL 9

Expert Comment

by:alkisg
ID: 18015622
Which version of Pascal? If it generates command line (32-bit) programs, you can.
E.g. see the version info of C:\Windows\System32\Arp.exe.
If it generates DOS-only programs (16-bit), it'll be very difficult...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Fine Tune your automatic Updates for Ubuntu / Debian
A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now