473,508 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Program counter

I'm a newbie at programming and I'm trying to write a program that
allows me to count the number of times a program is accessed with the
result to increment a log file. I can get it to work(ish) with vbs if
the user opens up the program first and then opens the file, but as
you can imagine most users open up the file by double clicking in
explorer or via shortcuts. Has anyone got any advice or can point me in
the right direction

Anyway thanks in advance!

May 3 '06 #1
4 4348
Du*****@googlemail.com wrote:
I'm a newbie at programming and I'm trying to write a program that
allows me to count the number of times a program is accessed with the
result to increment a log file. I can get it to work(ish) with vbs if
the user opens up the program first and then opens the file, but as
you can imagine most users open up the file by double clicking in
explorer or via shortcuts. Has anyone got any advice or can point me in
the right direction


Asking the same question three times in rapid succession is likely
to put people off helping you, ever.

Especially when it's as dramatically off-topic as this one is.

Try asking on a windows group (since this appears to be a windows-specific
question).

--
Chris "refreshed, revitalised, relaxed, returned, registered" Dollin
Jena User Conference: http://jena.hpl.hp.com/juc2006/index.html
"People are part of the design. It's dangerous to forget that." /Star Cops/
May 3 '06 #2
Thanks mate, got a really slow internet connection at work and hit post
2 too many times. I realised what i did and removed the dupicates
straight away. I'm new to furum etiquette so i do appologise. Thanks

May 3 '06 #3
Sorry new to furums and its etiquette (i did remove the repeated posts
straight away. couldn't find an appropriate location for my post but
ill try the windows group as well

May 3 '06 #4
Du*****@googlemail.com writes:
Sorry new to furums and its etiquette (i did remove the repeated posts
straight away. couldn't find an appropriate location for my post but
ill try the windows group as well


Newsgroups, not forums.

Removing posts (i.e., cancelling articles) doesn't always work. It's
implemented by sending out a "cancel" message, but many sites ignore
cancels -- and it's always possible that the cancel won't catch up
with the original message.

It's also important to provide context when you post a followup. See
<http://cfaj.freeshell.org/google/> for details. It's rarely
necessary to quote the entire article to which you're replying. Trim
anything that's not relevant. See most of the articles in this
newsgroup for examples.

<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c> is a good
introduction to this newsgroup. The FAQ is at
<http://www.c-faq.com/>.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
May 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1411
by: Cam | last post by:
Hi all, The code below is a practical exercise and works well running in the debug environment but fails when being compiled for a release build. I believe this is because the debug environment...
7
7363
by: brian.digipimp | last post by:
Write a program that prompts the user to input a positive integer. It should then output a message indicating whether the number is a prime number. (Note: An even number is prime if it is 2. An odd...
10
2869
by: emmx | last post by:
Hi I am new to c. I am trying to write a simple program which will prompt the user to enter an integer between 1 and 9 and the output will be produced as follows (eg. 5) 1 22 333 4444 55555
12
2832
by: DannyB | last post by:
I'm just learning Python. I've created a simple coin flipper program - here is the code: #Coin flipper import random heads = 0 tails = 0 counter = 0
2
1710
by: ayman723 | last post by:
hi, I'm trying to write a program in wich I would generate 20 sentences out of 4 arrays(articles,nouns,preposition,verb).I have to select an item at random from each array and concatetane each one...
1
2507
by: k1ckthem1dget | last post by:
I am trying to write a program which sorts an array of supplied names. These are the errors i am getting. .cpp:39: error: expected identifier before ',char); void selectionSort(int , int);...
9
3389
by: gdarian216 | last post by:
I have written a c++ program that takes input from a file and outputs the average. The program uses structs and I need to convert the struct to a class. I just dont know how to get started and if...
4
2295
nexcompac
by: nexcompac | last post by:
Ok, I posted a similar post but now need to jump back into it. Here is what I have been able to clean up. I am using textpad and jbuilder. Still getting used to the whole java world and I am...
5
2466
by: laxmang4 | last post by:
I'm trying to write a program that creates webpages by reading text from a file. I can't seem to get the program to ignore lines that only contain the "\n" or "\t". Here is the main section of...
2
1394
by: ccarter45 | last post by:
Okay, so I need to write this program that first declares an array and inputs the number of each snake present on a plane (there are 5 diff. snakes). Next, it must print out the number of each snake:...
0
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7499
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5055
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3199
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
422
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.