Solved

Version information

Posted on 2006-11-24
3
183 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

713 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