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
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