Hello,

      call system('cmd.exe /c cls')

works! Thank you Dave!

Now I have a new problem with 'call system':
I wolud like to start a batch-file named '1.bat'.
1.bat and my program are in the same directory (C:\test).

      call system('1.bat')
      pause
      end

Error-message:

1.bat: not found

If i add the directory to the PATH:

PATH=%PATH%;C:\test

it works, but normally the current directory should be scanned, also if it is not in 
the PATH...?


If I try to start my program from the cygwin-shell (current directory is the directory 
where the program is saved) i get the following error-message:

bash: a.exe: command not found

This is no 'call system'-problem, but mayby there is a correllation.


Thank you very much, Lars.


Attachment: check.txt (cygcheck)


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Fri Mar 19 16:21:43 2004
Windows XP Professional Ver 5.1 Build 2600 Service Pack 1
Path:   C:\cygwin\usr\local\bin
        C:\cygwin\bin
        C:\cygwin\bin
        C:\cygwin\usr\X11R6\bin
        c:\WINDOWS\system32
        c:\WINDOWS
        c:\WINDOWS\System32\Wbem
        c:\Programme\Symantec\Norton Ghost 2003\
        c:\texmf\miktex\bin
        C:\cygwin\bin
SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS
HOME = `C:\cygwin\home\Steinke'
MAKE_MODE = `unix'
PWD = `/home/Steinke'
USER = `Steinke'
ALLUSERSPROFILE = `C:\Dokumente und Einstellungen\All Users'
APPDATA = `C:\Dokumente und Einstellungen\Steinke\Anwendungsdaten'
COMMONPROGRAMFILES = `C:\Programme\Gemeinsame Dateien'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HOMEDRIVE = `C:'
HOMEPATH = `\Dokumente und Einstellungen\Steinke'
INFOPATH = 
`/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
MANPATH = 
`/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/X11R6/man:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PKG_CONFIG_PATH = `:/usr/X11R6/lib/pkgconfig'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 6 Stepping 2, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0602'
PROGRAMFILES = `C:\Programme'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOKUME~1\Steinke\LOKALE~1\Temp'
TERM = `cygwin'
TEXMF = `{/usr/share/lilypond/2.0.1,/usr/share/texmf}'
TMP = `c:\DOKUME~1\Steinke\LOKALE~1\Temp'
USERDOMAIN = `STEINKE-1Q96FW1'
USERNAME = `Steinke'
USERPROFILE = `C:\Dokumente und Einstellungen\Steinke'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
a:  fd           N/A    N/A
c:  hd  NTFS   13319Mb  64% CP CS UN PA FC     Winxp_normal
C:\cygwin                          /                         system  binmode
C:\cygwin/bin                      /usr/bin                  system  binmode
C:\cygwin/lib                      /usr/lib                  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
                                  /cygdrive                 system  binmode,cygdrive
Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
    Cygwin DLL version info:
        DLL version: 1.5.7
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 109
        Cygdrive flags: cygdrive flags

Cygwin Package Information
Package                 Version
_update-info-dir        00227-1
a2ps                    4.13-1
agetty                  2.1-1
antiword                0.34-2
apache                  1.3.29-2
ash                     20040127-1
aspell                  0.50.3-1
aspell-de               0.50.2-1
aspell-doc              0.50.3-1
aspell-en               0.51.0-1
aspell-pl               0.50.2-1
astyle                  1.15.3-3
autoconf                2.59-1
autoconf-devel          2.59-1
autoconf-stable         2.13-5
automake                1.7.9-1
automake-devel          1.7.9-1
automake-stable         1.4p6-2
base-files              2.6-1
base-passwd             1.1-1
bash                    2.05b-16
bc                      1.06-1
binutils                20040312-1
bison                   20030307-1
byacc                   1.9-1
bzip2                   1.0.2-5
c-client                2002e-3
c3270                   3.2.20-1
cabextract              0.6-2
ccache                  2.2-1
ccdoc                   0.8.39-1
cgoban                  1.9.14-1
check                   0.8.4-1
chkconfig               1.2.24h-1
clear                   1.0-1
clisp                   2.32-1
cmake                   1.8.3-1
cocom                   0.995-1
compface                1.4-5
cpio                    2.5-3
cron                    3.0.1-11
crypt                   1.1-1
ctags                   5.5-4
curl                    7.10.8-1
curl-devel              7.10.8-1
cvs                     1.11.6-3
cygipc                  2.03-2
cygrunsrv               0.98-1
cygutils                1.2.5-1
cygwin                  1.5.7-1
cygwin-doc              1.3-7
cygwin-x-doc            1.0.1-1
d                       1.2.0-1
db2                     2.7.7-4
db3.1                   3.1.17-2
db4.1                   4.1.25-1
ddd                     3.3.8-1
dejagnu                 20021217-2
diffutils               2.8.4-1
distcc                  2.13-1
docbook-xml42           4.2-2
docbook-xsl             1.64.1-1
doxygen                 1.2.18-1
dpkg                    1.10.4-2
ed                      0.2-1
editrights              1.01-1
ELFIO                   1.0.0-1
emacs                   21.2-12
emacs-el                21.2-12
emacs-X11               21.2-12
enscript                1.6.3-3
exim                    4.30-2
expat                   1.95.7-1
expect                  20030128-1
fetchmail               6.2.5-2
figlet                  2.2-1
file                    4.06-1
fileutils               4.1-2
findutils               4.1.7-4
flex                    2.5.4a-3
fltk                    1.1.4-2
fontconfig              2.2.2-1
fortune                 1.8-2
freetype2               2.1.5-1
fvwm                    2.4.7-3
gawk                    3.1.3-4
gcc                     3.3.1-3
gcc-ada                 3.3.1-3
gcc-g++                 3.3.1-3
gcc-g77                 3.3.1-3
gcc-gpc                 3.3.1-3
gcc-java                3.3.1-3
gcc-mingw               20030911-4
gcc-mingw-ada           20031020-1
gcc-mingw-core          20031020-1
gcc-mingw-g++           20031020-1
gcc-mingw-g77           20031020-1
gcc-mingw-gpc           20031020-1
gcc-mingw-java          20031020-1
gcc-mingw-objc          20031020-1
gcc-objc                3.3.1-3
gd                      2.0.21-1
gdb                     20030919-1
gdbm                    1.8.3-7
gettext                 0.12.1-3
gettext-devel           0.12.1-3
ghostscript             7.05-2
ghostscript-base        7.05-2
ghostscript-x11         7.05-2
gmp                     4.1.2-1
gnugo                   3.4-1
gnupg                   1.2.4-1
gnuplot                 3.8j.0-1
gperf                   2.7.2-1
grace                   5.1.12-1
GraphicsMagick          1.0.4-1
grep                    2.5-1
groff                   1.18.1-2
gsl                     1.4-2
gtypist                 2.7-2
guile                   1.6.4-12
guile-devel             1.6.4-12
guile-doc               1.6.4-12
gv                      3.5.8-1
gzip                    1.3.5-1
help2man                1.33.1-1
ImageMagick             5.5.7-2
indent                  2.2.9-1
inetutils               1.3.2-26
initscripts             0.9-1
ioperm                  0.4-1
irc                     20010101-3
jbigkit                 1.5-3
jgraph                  8.3-1
jpeg                    6b-11
keychain                2.0.3-2
less                    381-1
lesstif                 0.93.91-6
lftp                    2.6.10-2
libaspell15             0.50.3-1
libbz2_0                1.0.2-1
libbz2_1                1.0.2-5
libcharset1             1.9.1-3
libdb2                  2.7.7-4
libdb2-devel            2.7.7-4
libdb3.1                3.1.17-2
libdb3.1-devel          3.1.17-2
libdb4.1                4.1.25-1
libdb4.1-devel          4.1.25-1
libfontconfig-devel     2.2.2-1
libfontconfig1          2.2.2-1
libfreetype2-devel      2.1.5-1
libfreetype26           2.1.5-1
libgd-devel             2.0.21-1
libgd2                  2.0.21-1
libgdbm                 1.8.0-5
libgdbm-devel           1.8.3-7
libgdbm3                1.8.3-3
libgdbm4                1.8.3-7
libgettextpo0           0.12.1-3
libGraphicsMagick-devel 1.0.4-1
libGraphicsMagick0      1.0.4-1
libguile12              1.6.4-12
libguile12abi13         1.6.4-2
libiconv                1.9.1-3
libiconv2               1.9.1-3
libintl                 0.10.38-3
libintl1                0.10.40-1
libintl2                0.12.1-3
libjpeg62               6b-11
libjpeg6b               6b-8
libkpathsea3            2.0.2-13
libkpathsea3abi13       2.0.2-2
libltdl3                1.5-3
libMagick-devel         5.5.7-2
libMagick6              5.5.7-2
libmcrypt               2.5.7-2
libmcrypt-devel         2.5.7-2
libncurses-devel        5.3-4
libncurses5             5.2-1
libncurses6             5.2-8
libncurses7             5.3-4
libopenldap2            2.1.25-1
libpcre                 4.1-1
libpcre0                4.5-1
libpng                  1.2.5-4
libpng10                1.0.15-4
libpng10-devel          1.0.15-4
libpng12                1.2.5-4
libpng12-devel          1.2.5-4
libpng2                 1.0.12-1
libpopt0                1.6.4-4
libreadline4            4.1-2
libreadline5            4.3-5
libsmi                  0.4.2-1
libtiff-devel           3.6.0-5
libtiff3                3.6.0-2
libtiff4                3.6.0-5
libtool                 1.5b-1
libtool-devel           1.5-3
libtool-stable          1.4.3-2
libungif                4.1.0-2
libxerces-c21           2.1.0-1
libxerces-c22           2.2.0-1
libxerces-c23           2.3.0-4
libxerces-c24           2.4.0-4
libxerces-c25           2.5.0-1
libXft                  2.1.5-1
libXft-devel            2.1.5-1
libXft1                 1.0.0-1
libXft2                 2.1.5-1
libxml2                 2.6.4-1
libxslt                 1.1.2-1
lilypond                2.0.1-1
lilypond-doc            2.0.1-1
links                   0.99pre14-1
login                   1.9-7
lynx                    2.8.4-7
m4                      1.4-1
make                    3.80-1
man                     1.5k-2
mc                      4.6.0-4
mhash                   0.8.18-1
mhash-devel             0.8.18-1
mingw-runtime           3.2-1
mingw-zlib              1.2.1-1
minires                 0.97-1
minires-devel           0.97-1
mktemp                  1.5-3
more                    2.11o-1
mt                      2.0.1-2
mutt                    1.4.1-2
naim                    0.11.6.6-1
nano                    1.2.2-1
nasm                    0.98.38-1
ncftp                   3.1.4-1
ncurses                 5.3-4
ncurses-demo            5.3-4
nedit                   5.4-1
netcat                  1.10-2
openbox                 0.99.1-4
opengl                  1.1.0-7
openldap                2.1.25-1
openldap-devel          2.1.25-1
openssh                 3.8p1-1
openssl                 0.9.7c-1
openssl-devel           0.9.7c-1
openssl096              0.9.6j-1
par                     1.52-1
patch                   2.5.8-8
patchutils              0.2.22-2
pcre                    4.5-1
pcre-devel              4.5-1
pcre-doc                4.5-1
pdksh                   5.2.14-3
perl                    5.8.2-1
perl-libwin32           0.191-1
perl_manpages           5.8.2-1
pine                    4.58-1
pinfo                   0.6.8-1
pkgconfig               0.15.0-4
popt                    1.6.4-4
postgresql              7.4.1-3
pr3270                  3.2.20-1
procmail                3.22-8
procps                  010801-2
proftpd                 1.2.9-1
psutils                 1.17-1
python                  2.3.3-1
rcs                     5.7-3
readline                4.3-5
rebase                  2.3-1
robots                  2.0-3
rpm                     4.1-1
rpm-build               4.1-1
rpm-doc                 4.1-1
rsync                   2.6.0-1
ruby                    1.8.1-1
rxvt                    2.7.10-4
s3270                   3.2.20-1
sed                     4.0.8-1
setsid                  0.0-3
sh-utils                2.0.15-4
sharutils               4.2.1-3
shutdown                1.4-1
splint                  3.1.1-1
squid                   2.4.STABLE7-1
ssmtp                   2.60.4-3
stunnel                 4.04-3
suite3270               3.2.20-1
sunrpc                  4.0-2
SWI-Prolog              5.2.6-1
swig                    1.3.19-1
sysvinit                2.84-4
tar                     1.13.25-5
tcl3270                 3.2.20-1
tcltk                   20030901-1
tcm                     2.20-1
tcp_wrappers            7.6-1
tcsh                    6.12.00-7
termcap                 20021106-2
terminfo                5.3_20030726-1
tetex                   2.0.2-13
tetex-base              2.0.2-13
tetex-bin               2.0.2-13
tetex-devel             2.0.2-13
tetex-doc               2.0.2-13
tetex-extra             2.0.2-13
tetex-tiny              2.0.2-13
tetex-x11               2.0.2-13
texinfo                 4.2-4
TeXmacs                 1.0.3.3-1
textutils               2.0.21-1
tidy                    030901-1
tiff                    3.6.0-5
time                    1.7-1
tin                     1.6.2-1
transfig                3.2.4-2
ttcp                    19980512-1
tzcode                  2003e-1
ucl                     1.01-1
units                   1.77-1
unzip                   5.50-5
upx                     1.24-1
uw-imap                 2002e-3
uw-imap-imapd           2002e-3
uw-imap-util            2002e-3
vim                     6.2.098-1
w32api                  2.5-1
wget                    1.9.1-1
which                   1.5-2
whois                   4.6.7-1
WindowMaker             0.80.2-1
WordNet                 2.0-1
wtf                     0.0.4-6
X-start-menu-icons      1.0.1-1
X-startup-scripts       1.0.1-1
x2x                     1.30-1
x3270                   3.2.20-1
Xaw3d                   1.5D-5
xemacs                  21.4.15-1
xemacs-emacs-common     21.4.15-1
xemacs-mule-sumo        2004-02-02-1
xemacs-sumo             2004-02-02-1
xemacs-tags             21.4.15-1
xerces-c                2.5.0-1
xerces-c-devel          2.5.0-1
xerces-c-doc            2.5.0-1
xfig                    3.2.4-6
xfig-bin                3.2.4-3
xfig-doc                3.2.4-2
xfig-etc                3.2.4-4
xfig-lib                3.2.4-6
xfig-man                3.2.4-2
XFree86-base            4.3.0-3
XFree86-bin             4.3.0-14
XFree86-bin-icons       4.3.0-7
XFree86-doc             4.3.0-2
XFree86-etc             4.3.0-9
XFree86-f100            4.3.0-1
XFree86-fcyr            4.3.0-1
XFree86-fenc            4.3.0-1
XFree86-fnts            4.3.0-1
XFree86-fscl            4.3.0-1
XFree86-fsrv            4.3.0-8
XFree86-html            4.3.0-6
XFree86-jdoc            4.3.0-2
XFree86-lib             4.3.0-2
XFree86-lib-compat      4.3.0-2
XFree86-man             4.3.0-6
XFree86-nest            4.3.0-6
XFree86-prog            4.3.0-15
XFree86-prt             4.3.0-6
XFree86-ps              4.3.0-2
XFree86-startup-scripts 4.3.0-1
XFree86-vfb             4.3.0-6
XFree86-xserv           4.3.0-55
XFree86-xwinclip        4.3.0-2
xgraph                  12.1-1
xinetd                  2.3.9-1
xmlto                   0.0.18-1
xpm-nox                 4.2.0-4
xwinclip                1.2.0-1
zip                     2.3-6
zlib                    1.2.1-1
zsh                     4.1.1-3
Use -h to see help about each section



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to