Posts: 172
Threads: 10
Joined: Dec 2008
I'm sure this is simple but I am struggling with figuring out how to work the new batch importer for images. I have a main directory (c:\Images)that contains 4 subdirectories (c:\Images\Ipod, c:\Images\Buttons, c:\Images\Controller, c:\Images\Background) of images. I would like to import all the images in at the same time. I have written the config file (probably incorrectly) and tried to run it in the CQC command prompt line but nothing is happening.
Can someone provide the snippet of lines that should be in the config file to perform the above?
Thanks for all your help.
Posts: 40,483
Threads: 491
Joined: Aug 2002
It should at least give you an error if it didn't like the format of your file. Can you you post the images part of the file, cut down to just include the relevant bits, i.e. a couple of the directories and a few images in each.
Dean Roddey
Explorans limites defectum
Posts: 172
Threads: 10
Joined: Dec 2008
Judging by your response I am now positive I created the file incorrectly. I moved all icons into one directory (c:\Images\Ipod Icons)
The below are the contents of my cfgfile.cfg:
// ---------------------------------------------------------------------------
// This is a test configuration file for the CQC bulk loader
// ---------------------------------------------------------------------------
CFGINFO=
VERSION=1
DESCRIPTION=Test configuration file
END CFGINFO
DRIVERS=
END DRIVERS
EVENTS=
END EVENTS
IMAGES=
IMGSCOPE=
SRCDIR=C:\Images\Ipod Icons
TARSCOPE=\user\Test Images
END IMGSCOPE
END IMAGES
IGNORE=
END IGNORE
Posts: 172
Threads: 10
Joined: Dec 2008
This is the error message I am getting now:
The indicated target text file logger could not be opened
CQC_SYSTEMID\Log.Txt
Posts: 40,483
Threads: 491
Joined: Aug 2002
Are you using some CQC Command Prompt that you've copied out to the desktop? If so, then use the one from the Start Menu, since things may have changed since you made that copy.
Dean Roddey
Explorans limites defectum
Posts: 172
Threads: 10
Joined: Dec 2008
I am using the command prompt from the start menu and I am running 3.4.0.
Posts: 40,483
Threads: 491
Joined: Aug 2002
Yikes. it looks like the command file that's setting up the CID_LOCALLOG= environment variable isn't correctly expanding the CQC_SYSTEMID environmental variable. Sigh... Wish we'd have figured that out before 3.4 went out. Oh well.
OK, so go to your [cqc]\Bin directory and use NOtepad or whatever to open CQCEnv.Cmd. You will see that in there it's setting CQC_SYSTEMID to the system id. But, it's doing it down below where the CID_LOCALLOG value is being set, so it's not set in time to be used.
So move the SET CID_LOCALLOG line to the bottom. Save it and re-open the command line prompt and it'll work. Oy! I'll fix that for the next release.
Dean Roddey
Explorans limites defectum
Posts: 172
Threads: 10
Joined: Dec 2008
11-16-2010, 01:34 PM
(This post was last modified: 11-16-2010, 01:37 PM by daddyd.)
Dean:
I updated the file (CQCEnv.cfg) and tried the command line again. I am still getting the same error message.
Are the details in my cfgfile.cfg correct? Do I need to show any detail on naming conventions or properties?
Posts: 40,483
Threads: 491
Joined: Aug 2002
You couldn't have gotten it right if you are still getting that error. Can you post the command file contents for me to look at?
Dean Roddey
Explorans limites defectum
Posts: 172
Threads: 10
Joined: Dec 2008
I modified the CQCEnv.cmd (located in C:\Program Files\CQC\Bin) to reflect the following:
@ECHO OFF
REM Sets up a command window for using the CQC command
REM line utilities
PATH=%PATH%;C:\Program Files\CQC\Bin;
SET CID_NSADDR=mediacenter:13502
SET CQC_DATADIR=C:\Program Files\CQC\CQCData
SET CQC_SYSTEMID=XXXXXXXXXXXXXXXXXX
SET CID_ERRDUMPDIR=C:\Program Files\CQC\CQCData\Logs
SET _NT_SYMBOL_PATH=C:\Program Files\CQC\Bin
SET CID_LOGMON_SNAP=C:\Program Files\CQC\Bin
SET CID_LOCALLOG=%ProgramData\%CQC_SYSTEMID%\Log.Txt;UTF-16;CQCLgMtx
I then type in the following line at the CQC command prompt:
CQCBulkLoader c:\cfginfo.cfg MYUSERNAME MYPASSWORD
Yes, I did put that file in the root directory.