Sponsored Content
Top Forums Programming how To edit exe to insert a serial no wich can be usd by runing exe Post 42170 by mbb on Thursday 23rd of October 2003 08:26:18 AM
Old 10-23-2003
Just a guess, but if you are trying to verify the version of an executable you have supplied then make sure you use some sort of source control for each source file e.g. RCS

Then include an identifier string. For RCS you might use:

static char ident="$Header$";

RCS will replace the $Header$ part with actual information on the source file. When compiled this information will be included to the executable.

With RCS you could then use the ident command to verify the version of the executable.

A serial number/key could be encoded in a similar way for a specific compilation for a client or the version number of the source could be reserved specifically for that compilation for a client.

You might try something a little bit more elaborate. Like reading the value from an encrypted file.

Is this what you mean?
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

.exe file

Hello all, how to run windows .exe file in Linux and vice the versa (3 Replies)
Discussion started by: rajashekaran
3 Replies

2. SuSE

does exe

does exe files works withe suse am new n linux system and were can i find msn 4 linux (2 Replies)
Discussion started by: abdulla
2 Replies

3. Linux

How to run .exe

Hai, is there any way to run an .exe file in unix environment . i have read that WINE HQ supports this concept but its very inconsistent and upto the user risk . but i tried WINE but iam not able to configure it can any one help me in this matter Regards Sanju (1 Reply)
Discussion started by: sanjustudy
1 Replies

4. Programming

exe info

Hi Is it possible to find all the information like its 'ProductName', 'ProductVersion, ''InternalName' , 'FileVersion' etc about a windows excutable file,( i.e. *.exe file ) on Unix/Linux. thanks sumsin (6 Replies)
Discussion started by: sumsin
6 Replies

5. UNIX for Dummies Questions & Answers

.exe files

how to open .exe file in freebsd system.My work is to run a growth.exe(created by growth.c turbo c 3.0 file).how to run that exe file in freebsd system?Thanks in advance help me (8 Replies)
Discussion started by: kumarangopi
8 Replies

6. Programming

running exe

how we can run the exe when the system starts. (2 Replies)
Discussion started by: phani_sree
2 Replies

7. Programming

exe

Is it possible to extract c program,from its executable file(.exe)? i mean we dont have program but its exe file only which runs,can we retrieve the program? if yes how? if no why? (2 Replies)
Discussion started by: unknown9
2 Replies

8. Programming

How to build .exe from c

All, I have never comipled C code before and would appricaite if anyone could tell me how to build a .exe from a C program. Thanks in advance. (5 Replies)
Discussion started by: thana
5 Replies

9. Programming

exe

hello everyone, could somebody tell me where can i find some good exercises on signals,processes and threads? actually i need to find some solved exercises in system programming. tnx (4 Replies)
Discussion started by: micy
4 Replies

10. UNIX for Beginners Questions & Answers

Seen Windows pc, having all the features of Linux, could exe, read and edit save like windows

Hi, totally new to linux base using windows when started learning and using computers. but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies
IDENT(1)						      General Commands Manual							  IDENT(1)

NAME
ident - identify RCS keyword strings in files SYNOPSIS
ident [ -q ] [ -V ] [ file ... ] DESCRIPTION
ident searches for all instances of the pattern $keyword: text $ in the named files or, if no files are named, the standard input. These patterns are normally inserted automatically by the RCS command co(1), but can also be inserted manually. The option -q suppresses the warning given if there are no patterns in a file. The option -V prints RCS's version number. ident works on text files as well as object files and dumps. For example, if the C program in f.c contains #include <stdio.h> static char const rcsid[] = "$Id: f.c,v 5.4 1993/11/09 17:40:15 eggert Exp $"; int main() { return printf("%s ", rcsid) == EOF; } and f.c is compiled into f.o, then the command ident f.c f.o will output f.c: $Id: f.c,v 5.4 1993/11/09 17:40:15 eggert Exp $ f.o: $Id: f.c,v 5.4 1993/11/09 17:40:15 eggert Exp $ If a C program defines a string like rcsid above but does not use it, lint(1) may complain, and some C compilers will optimize away the string. The most reliable solution is to have the program use the rcsid string, as shown in the example above. ident finds all instances of the $keyword: text $ pattern, even if keyword is not actually an RCS-supported keyword. This gives you infor- mation about nonstandard keywords like $XConsortium$. KEYWORDS
Here is the list of keywords currently maintained by co(1). All times are given in Coordinated Universal Time (UTC, sometimes called GMT) by default, but if the files were checked out with co's -zzone option, times are given with a numeric time zone indication appended. $Author$ The login name of the user who checked in the revision. $Date$ The date and time the revision was checked in. $Header$ A standard header containing the full RCS file name, the revision number, the date and time, the author, the state, and the locker (if locked). $Id$ Same as $Header$, except that the RCS file name is without directory components. $Locker$ The login name of the user who locked the revision (empty if not locked). $Log$ The log message supplied during checkin. For ident's purposes, this is equivalent to $RCSfile$. $Name$ The symbolic name used to check out the revision, if any. $RCSfile$ The RCS file name without directory components. $Revision$ The revision number assigned to the revision. $Source$ The full RCS file name. $State$ The state assigned to the revision with the -s option of rcs(1) or ci(1). co(1) represents the following characters in keyword values by escape sequences to keep keyword strings well-formed. char escape sequence tab newline space 40 $ 44 \ IDENTIFICATION
Author: Walter F. Tichy. Manual Page Revision: 5.8.1; Release Date: 2012-06-06. Copyright (C) 2010-2012 Thien-Thi Nguyen. Copyright (C) 1990, 1992, 1993 Paul Eggert. Copyright (C) 1982, 1988, 1989 Walter F. Tichy. SEE ALSO
ci(1), co(1), rcs(1), rcsdiff(1), rcsmerge(1), rlog(1), rcsfile(5). Walter F. Tichy, RCS--A System for Version Control, Software--Practice & Experience 15, 7 (July 1985), 637-654. GNU RCS 5.8.1 2012-06-06 IDENT(1)
All times are GMT -4. The time now is 12:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy