PDA

View Full Version : Command line switches


Electrawinds
01-03-2010, 10:40 PM
Hello,
I am running a batch file for shp to dwg conversion.
It all works fine, except that I cannot hide warning messages.
-----
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
for /f "tokens=*" %%a IN ('dir /s /b *.shp') do (
echo %%a to DWG...
"C:\tools\GIS\Arcv2CAD5\a2c50.exe" /H /W0 "%%a"
)
pause
-----
Works fine but, /W0 should surpress warning messages, and I still get them if the .shp contains no data (there are a lot of such files, as I work with tiles)

I saw in the forum an old messages saying that I should work with .A2C batch files, but I prefer not...

/LOG=2 as switch doesn't do the trick either... I tested this, trying to convert a corrupted shp, and it errored, instead of ignored.

Am I doing something wrong?
Thank you for an answer,
Lode from Belgium

GuthCAD Software Support
01-03-2010, 11:34 PM
Hi,

It seems that if the shapefile is empty, a 'severe' warning is generated which is not suppressed by /W0.

We will change the operation to suppress all warnings with /W0 in the next software update.

best regards,
software support

Electrawinds
02-03-2010, 01:23 AM
Thanks for the quick response.

Is there any possibility to run trough all files in folder and subfolders without interrupting on corrupt files? (without preparing everything first in an .a2c file (because of changing content)).

Ciao,
Lode