Commit Graph

42 Commits

Author SHA1 Message Date
Francois Gouget cfc3943c5f Make our ascii strings static const.
Remove a couple string variables that were used only once and use the
string literal directly.
2004-05-04 04:13:05 +00:00
Mike McCormack 9643b79842 Implement setlocal/endlocal. 2004-03-22 22:56:58 +00:00
Mike McCormack 8d02010ff7 Fixed handling of "echo." 2004-03-18 04:01:32 +00:00
Francois Gouget 640cc3f3e1 Assorted spelling fixes. 2004-01-06 22:08:33 +00:00
Daniel Marmier 8e5bb20542 Fixed warnings with gcc option "-Wwrite-strings". 2003-10-09 04:39:01 +00:00
Ferenc Wagner b129a1489f Implement >> style (append) output redirection. 2003-09-11 20:41:26 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Oleg Prokhorov 61cb704533 No handles were inherited in CreateProcess, all child console programs
were silent.
Eric Pouech <pouech-eric@wanadoo.fr>
Ensure redirected stream handle for child process are actually
inheritable.
2003-08-27 23:12:06 +00:00
Oleg Prokhorov 7ffb4ed075 Avoid crash in WCMD_run_program when no extension was specified. 2003-08-22 05:01:59 +00:00
Alexandre Julliard 07fc82ee04 Fixed check for .bat and .cmd extensions (spotted by Mike McCormack). 2003-07-22 01:03:53 +00:00
Sylvain Petreolle c5fe7f034c French translation + misc fixes. 2003-07-11 03:49:19 +00:00
Alexandre Julliard 9fc5e6f098 Avoid hard-coded command line length limit in WCMD_process_command. 2003-07-09 22:21:04 +00:00
Greg Marsden 41226dba28 Allow command lines with pipes to be processed by wcmd. 2003-07-09 21:58:26 +00:00
Mike McCormack 99c67eefcd Null parameters need to be quoted on the commandline. 2003-07-09 02:50:15 +00:00
Francois Gouget d98f4a5e43 Fix handling of wcmd /c "c:\Program Files\hello.bat".
Make /c and /k effectively exclusive, like the real cmd does.
Fix handling of /q: it's compatible with /c and /k.
Added compatibility with /t /x and /y, just ignore them.
2003-05-11 02:48:17 +00:00
Stefan Leichter a127ad1cd1 Let wcmd handle .cmd files like .bat files. 2003-03-25 00:33:56 +00:00
Sylvain Petreolle 98f44486be Allow to run autoexec.bat when launching wcmd, it was broken due to a
function change.
2003-03-05 02:49:04 +00:00
Eric Pouech b2f079bade - don't create a new console upon startup
- no longer assume we're always attached to a console
2003-02-27 01:41:21 +00:00
Eric Pouech 841d9828e9 - made support for paged output a generic feature in wcmd
- rewrote DIR command accordingly
2003-02-25 03:58:42 +00:00
Dan Kegel a20622d7de Make 'cmd /c cl /MUMBLE foo.c' pass /MUMBLE to cl. 2003-02-24 20:39:53 +00:00
Sylvain Petreolle fdd0bfa13c Fixed handling of PATH command with spaces. 2003-02-11 22:01:11 +00:00
Alexandre Julliard 36bf792fd7 Use proper file sharing parameters when opening files.
Fixed handling of 'if a == b' syntax in batch files.
2003-01-15 03:35:32 +00:00
Chris Morgan c87595c994 Default to $P$G prompt. Make width of date 10 characters to align
date column with DATE_SHORTDATE format.
2003-01-02 17:47:40 +00:00
Sylvain Petreolle 00f5094a57 Implement $V in builtin PROMPT. 2002-12-11 00:15:20 +00:00
Jaco Greeff 63e8a260eb Skip the allocation of a new console on "wcmd /c <command>" execution,
using the current allocated STDIN and STDOUT handles for command
input/output.
2002-11-04 22:36:07 +00:00
Alexandre Julliard 11d606db26 Try CreateProcess even if SHGetFileInfo fails so that we can launch
Unix binaries.
2002-10-09 20:38:36 +00:00
Uwe Bonnes 5a2e82d719 WCMD_parse: allow slashes in command filenames. 2002-09-12 20:43:54 +00:00
Uwe Bonnes a47eb31d2a WCMD_run_program: don't try to run an empty line. 2002-07-24 19:00:48 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Jason Edmeades bcc6256bf0 Add support for the 'title' command. 2002-05-04 18:29:31 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Steven Edwards ba7ccc4cc6 Changes wine_main to main to properly build on all platforms. 2002-01-29 02:59:22 +00:00
Dave Pickles 64fba1cb84 - Report file and directory sizes using 64-bit arithmetic (like NT).
- Handle pipes in commands.
2001-06-04 02:55:38 +00:00
François Gouget 12b352694b The last parameter of CreateFile is a HANDLE and should thus be NULL. 2001-01-02 20:40:58 +00:00
Dave Pickles ebb2791164 Pause command interpreter while executing a console-mode app. 2000-11-02 20:07:07 +00:00
Dave Pickles ebecf50229 Added support for ERRORLEVEL.
Most errors reported via FormatMessage().
COPY command now works correctly if output specifier is a directory.
2000-08-01 22:02:18 +00:00
Jason Edmeades a5910f45bd - Support whitespace around commands better, and support the @
prefix better
- Enhance the set support to unset, display value error correctly
- Enhance the command line support for parms, and env var expansion
- Enhance the echo command to not loose whitespace, and display
  output with % signs better
2000-08-01 02:14:33 +00:00
Alexandre Julliard b44595283f Improved Winelib apps initialisation code. No longer need to link
winestub.o with Winelib apps.
2000-04-15 21:00:55 +00:00
Patrik Stridvall 205721e724 Fixed ANSI C related compile problems. 2000-03-24 20:40:41 +00:00
Dave Pickles 036a9f79a9 FOR and IF commands added.
MOVE command added, but no wildcard support.
Redirection added.
Fixed TIME (was reporting in GMT).
More help text.
1999-07-10 11:36:45 +00:00
Dave Pickles 5f8f4f77f5 Added more batch functionality, including the CALL GOTO and SHIFT
commands plus batch command arguments.
1999-06-26 10:24:08 +00:00
Dave Pickles 74f440eabf Added Wine command-line interpreter. 1999-06-06 15:24:04 +00:00