windows , yeah, real good stuff...
Brian K. White
brian at aljex.com
Wed Jan 5 21:41:40 PST 2005
I think every time someone says how they don't have any problems with
windows and that the unix camp are just grumpy are simply used to more grief
and don't call many things a problem that should be called a problem.
I just came across a comment in a batch file I wrote some time ago that I'd
completely forgotten. Life in windows seems to be a sea of a zillion things
like this, making it impossible to be properly outraged at every one.
REM grrr! FDGXCZ windows.... inconsistant functionality
REM "if exist /path/to/file" works fine
REM yet "del /path/to/file" does NOT and must be changed to
REM "del \path\to\file"
REM requiring stupid additional junk that makes these scripts more
REM error-prone.
Later, the stupid junk is really ugly.. I ensure that a copy of awk.exe
exists and use it
REM if target directory does not exist, create it
if exist %PDIR% goto SCAN
echo %PDIR% |awk "{gsub(/\//,\"\\\\\",$0) ; system (\"mkdir \" $0) }"
later...
REM append delete script
echo %IMG% |awk "{gsub(/\//,\"\\\\\",$0) ; print \"del /q\",$0}" >>%ASDEL%
Probably my real problem is that I'm trying to write something in windows
but not using whatever passes for the "proper" scripting tool in windows
like vbs/wsh I guess. Maybe then I'd not have to do this either to emulate a
simple "sleep 1"
:LUK
if exist %IMG% goto END
ping -n 2 127.0.0.1 >NUL
goto LUK
Brian K. White -- brian at aljex.com -- http://www.aljex.com/bkw/
+++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani
More information about the Filepro-list
mailing list