473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 4341
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
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
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
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
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
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
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
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
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
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
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.