PDA

View Full Version : Odd file creation


jpants
02-01-2010, 06:45 AM
Dean,

This has happened on two different computers now. I don't know what I do to cause this but it is annoying to say the least. I just updated all my computers to the new Beta ver .36. I rebooted my computer and a screen pops up saying a new folder has been created named program and may conflict with sys folder. I open the program folder and it is filled with CQC folders but all are empty. I delete the folder but the same screen pops up when I reboot and the folder is recreated? I am at a loss here.

CQC works fine (this is on a client machine not the server) I have two now that this happens to.

John

Dean Roddey
02-01-2010, 10:53 AM
What's the 'program' folder? Do you mean Program Files? It sounds like some security setting or anti-virus program on your system is preventing CQC from creating the directories it needs, and is redirecting them in some way.

jpants
02-01-2010, 02:25 PM
I don't know what the program folder is. It is not program files just Program. The CQC directories and folders in it are empty.

There is no virus or firewall on the one client machine at the moment.

http://i113.photobucket.com/albums/n235/supraracer_2006/ProgramFolder.jpg

http://i113.photobucket.com/albums/n235/supraracer_2006/ProgramFolderDetail.jpg

John

Dean Roddey
02-01-2010, 03:05 PM
It sounds like perhaps something wasn't correctly quoted in some way, so "C:\Program " was taking as a parameter, instead of the full "C:\Program Files\whatever". But no one else has reported this, so I'm not sure why that could have happened.

Can you remove that Program directory? If so, then on one is using it. Clearly it must has been caused by the system intercepting something since it is what popped up the dialog box. Try removing the directory and restarting the machine. See if they get created again. If it's repeatable, we might be able to figure out what's going on.

You didn't quote the installation directory in the installer or anything, did you? The double quotes that would have resulted in could have caused the problem.

jmwhooper
02-02-2010, 03:52 AM
I had this issue and after digging around found it was related to some programs in the registry run folder not being correctly quoted, as Dean states.

Just find the registry location where the run and runonce folders reside and edit the entries to include the quote marks.

Then you can delete the program directory and it should stay deleted!

wuench
02-02-2010, 05:06 AM
Are you using a backup script (like TM's)? (or did you at one time) If so that may have an unquoted parameter in it.

jpants
02-02-2010, 05:15 AM
I am not sure what I did. I have deleted it and it did not return but it has in the past. I'll dig in the registry but I didn't change anything from the upgrade BUT it is not a computer I use a lot. It's fairly new. I have the viewer and app server start on bootup but only moved the icon into the startup folder. I didn't change any parameters.


Never did the auto backup thing.

John

jpants
02-02-2010, 06:03 AM
Dean,

I am having issues with the key mappings intermittently working on the same computer. It seems at startup they will not take the keystroke but if I change focus by min then max the viewer, then try they will take keystrokes. It’s only on initial loading of viewer and may be unique to my setup. I have tried it on another computer (Server) and it works fine.

On the other computer that also has the Folder Creation problem it acts the same way. Both computers that produce the Folder issue have issues with keystrokes on initial start up of viewer and both machines have AutoIT installed on them for running scripts. Both are running XP Pro SP3.

John

Dean Roddey
02-02-2010, 09:46 AM
What version of CQC are you on? There was an issue with the IV taking focus upon startup. Once you clicked on it, it would be ok (and the min/max would do the same.) It should work correctly in the latest beta.

jpants
02-02-2010, 11:34 AM
I am on the newest Beta 3.0.36. Removing AutoIt did not do anything. AutoIt is also on the server which operates fine.

John

Dean Roddey
02-02-2010, 12:15 PM
On the key mapping thing, is there a web widget present perhaps on that page, and maybe it's eating the key strokes, whereas there isn't one in the cases where it works.

jpants
02-02-2010, 12:33 PM
No, No web widgets. It has just a few buttons on it. It won't work even if I click on it. It has to be minimized then restored / max for it to work. I completely removed CQC and reinstalled but still no love. The folder hasn't come back but the key mappings are not working on this one machine.

I am at a loss.

John

jpants
02-02-2010, 12:52 PM
Ok, So just for fun I created a new blank template and launched it in the viewer. It took the key mappings fine. I re-opened the old template and not taking the key strokes unless min then max. I created another new template coppied all the images and widgets to the new template and gave it a similar name. It worked fine. So it has to do with that specific template. There are no web widgets on it and the new template is exactly like the older one (except the mappings work)

???

Folder thingy is still good so far.

John

Dean Roddey
02-02-2010, 01:26 PM
Grab that template file and e-mail it to me. Don't do a pack, just send me the raw file. Is anything showing up in the logs when you load it? Perhaps it's not successfully loading fully or something.

jpants
02-02-2010, 01:51 PM
Grab that template file and e-mail it to me. Don't do a pack, just send me the raw file. Is anything showing up in the logs when you load it? Perhaps it's not successfully loading fully or something.

Will do! I'll check the logs.

Found the reason for the folder thingy. Run parameter green is comments

If Not WinExists ( "Interface Template Viewer","") Then ; Run viewer if not already running
Run ( "C:\Program Files\CQC\Bin\CQCIntfView.exe /DataDir=C:\Program Files\CQC\CQCData /NSAddr=MediaServer1:13502", "C:\Program Files\CQC\Bin")
WinWait ( "Interface Template Viewer","",5) ;Wait 5 seconds for window to exist
WinSetState( "Interface Template Viewer", "", @SW_MINIMIZE); Minimize viewer
EndIf

It's the script I use. It creates the folder every time. Any reason this would do that. The Run parameters are this

Run ( "program" [, "workingdir" [, show_flag[, opt_flag ]]] )

John

jpants
02-02-2010, 02:19 PM
Dean,

Template sent to you. Nothing showed in the logs.

John

(see previous post for Folder creation script)

Dean Roddey
02-02-2010, 03:45 PM
You will have to quote the individual parameters that have spaces in them when you invoke the viewer, since otherwise it takes each sequential chunk of characters as separate parameters. Probably you can use single quotes inside the overall quoted string. So something like this:

Run ( "'C:\Program Files\CQC\Bin\CQCIntfView.exe' '/DataDir=C:\Program Files\CQC\CQCData' /NSAddr=MediaServer1:13502", "C:\Program Files\CQC\Bin")

jpants
02-08-2010, 09:01 AM
Couldn't get any variation of this to work so I created the CQC_DATADIR var in the enviroment variables so I wouldn't need to pass that param and it is working now. Will that be OK?

Did you see anything in that template I sent to you.

John

Dean Roddey
02-08-2010, 10:46 AM
Just be careful. Should you ever move it and not update that variable, it'll still be going back to that spot.

I've not looked that that template yet. I'll take a look at it today.