PDA

View Full Version : /DATFILE /TURC parameters


tigran
11-06-2007, 04:56 PM
Hi.

I execute my TrueUpdate client with several custom parameters so it would know which application should be checked for update.

Now I noticed that if TrueUpdate client has just restarted (_ClientRestarted == true), then TrueUpdate passes 2 extra parameters to itself:

1. path to .dat file as first parameter. For example: /DATFILE:W:\Common\TrueUpdate.dat

2. /TURC as last parameter

My questions are:

1. What is the purpose of /TURC parameter?
2. Does TrueUpdate pass any other parameters to itself?

My TrueUpdate depends on parameters to be passed in certain order so I need to know how to handle exceptions to the rule.

Thanks!

Mark
11-12-2007, 08:52 AM
Hi Tigran,

You are right, when the client restarts you will see two extra parameters:

1) /DATFILE - The path to the dat file, as you figured out

2) /TURC - This tells TrueUpdate the the client has been restarted.

The parameters will always be in this format:

/DATEFILE:<<PATH TO DAT FILE>> <<ORIGINAL CMD ARGS>> /TURC

Hopefully this helps.