Commit Graph

60 Commits

Author SHA1 Message Date
Frédéric Delanoy
44a1e7d199 cmd: Move commonly used global vars declarations to header file. 2011-11-30 11:44:05 +01:00
Frédéric Delanoy
5fc25686a4 cmd: Avoid duplication of commonly used strings. 2011-11-15 11:45:58 +01:00
Frédéric Delanoy
6221e300bc cmd: Avoid comparison between signed and unsigned values. 2011-11-08 13:55:14 +01:00
Frédéric Delanoy
6d01f15a27 cmd: Rename a parameter in WCMD_parameter. 2011-10-31 16:48:33 +01:00
Frédéric Delanoy
cd30c52b35 cmd: Avoid reading char by char from files. 2011-10-06 16:46:41 -05:00
Frédéric Delanoy
5e3cb1867b cmd: Infer handle type from handle value in WCMD_fgets and WCMD_ReadAndParseLine. 2011-10-06 16:46:41 -05:00
Frédéric Delanoy
d25f614c51 cmd: Rename a parameter in WCMD_fgets. 2011-10-05 17:00:12 -05:00
Frédéric Delanoy
5e8893f2f6 cmd: Handle truncation for console reads. 2011-10-03 09:46:11 -05:00
Frédéric Delanoy
e3a72698c1 cmd: Improve WCMD_fgets documentation. 2011-10-03 09:45:49 -05:00
Frédéric Delanoy
29b57ca82d cmd: Get rid of unused parameter in WCMD_ReadFile. 2011-09-28 17:29:24 +02:00
Frédéric Delanoy
d6f4f7308a cmd: Avoid checking whether we're in console mode for every read. 2011-09-28 17:29:10 +02:00
Frédéric Delanoy
a7e1c22a48 cmd: Avoid reading char by char from console. 2011-09-28 17:27:08 +02:00
Frédéric Delanoy
83daee9a89 cmd: Fix WCMD_fgets documentation. 2011-09-26 22:42:01 +02:00
Frédéric Delanoy
9c61656307 cmd: Output error messages to stderr where appropriate. 2011-09-26 22:42:01 +02:00
Frédéric Delanoy
bf63385fab cmd: Remove unused declarations of echo_mode. 2011-09-16 17:24:15 +02:00
Frédéric Delanoy
a33bad1edd cmd: Allow a batch file to delete itself. 2011-09-12 16:49:56 +02:00
Frédéric Delanoy
3627c28958 cmd: Add an output parameter to WCMD_parameter to point to the end of the extracted param, if requested. 2011-09-08 20:08:07 +02:00
Frédéric Delanoy
7b9af22682 cmd: Simplify WCMD_parameter function. 2011-09-08 20:08:07 +02:00
Frédéric Delanoy
40c6ff8abe cmd: Fix misleading WCMD_parameter documentation. 2011-09-08 20:08:07 +02:00
Octavian Voicu
94d2312fe2 cmd: Don't parse colons as stream separators when splitting paths. 2011-08-29 13:59:34 +02:00
Frédéric Delanoy
ff501904a7 cmd: Constify some function parameters. 2011-08-23 16:53:50 +02:00
Austin English
3631ee051e cmd: Avoid shadowing a parameter. 2011-03-09 15:54:20 +01:00
Paul Vriens
f468055408 cmd: Remove some unneeded extension checking. 2010-02-18 17:15:19 +01:00
Dan Kegel
60fe4dae7a cmd: %~dp0 should expand to the directory containing the batch file, not the current directory. 2010-02-03 11:07:07 +01:00
Alexandre Julliard
79b00726f2 cmd: Use the explicit name for all A/W function. 2009-12-09 18:52:40 +01:00
Colin Fletcher
45905b27db cmd.exe: Treat tabs as parameter delimiters. 2009-10-15 12:06:22 +02:00
Gerald Pfeifer
008edf4572 cmd.exe: Fix incorrect check in WCMD_HandleTildaModifiers(). 2009-06-16 13:26:30 +02:00
Francois Gouget
c48e5e048f cmd: Introduce a WCMD_strsubstW() function to simplify string substitutions. 2009-06-15 13:42:29 +02:00
Michael Stefaniuc
cf8571fed0 cmd: Remove some superfluous casts. 2008-12-04 12:08:24 +01:00
Francois Gouget
8a18e0e43a Assorted spelling fixes. 2008-04-07 13:36:18 +02:00
Rob Shearman
1d6922b2e0 cmd: Fix character count passed to GetShortPathName in WCMD_HandleTildaModifiers. 2008-02-25 13:30:03 +01:00
Rob Shearman
271eaf5c9d cmd: Fix loop termination check in WCMD_batch. 2008-02-25 13:29:57 +01:00
Francois Gouget
44b52b128c Assorted spelling fixes. 2008-01-16 12:48:29 +01:00
Lance Jackson
d56217e98e cmd: Fix some unclosed file and registry handles. 2008-01-04 12:12:51 +01:00
Jason Edmeades
1ee75382c7 cmd.exe: Fix redirect ordering on a command line. 2007-09-12 12:40:16 +02:00
Jason Edmeades
118f3a6592 cmd.exe: Allow = and , to be delimiters. 2007-09-12 12:39:29 +02:00
Jason Edmeades
b69241124e cmd.exe: Expand for variables at last with tilda modifications. 2007-09-12 12:39:21 +02:00
Jason Edmeades
85c5dcb13f cmd: Fix trap when batch pgm runs another batch pgm. 2007-07-25 13:03:42 +02:00
Jason Edmeades
54d890ca1e cmd.exe: Fix FOR so it works as 'well' as before. 2007-06-18 14:24:59 +02:00
Jason Edmeades
d2e7b401a2 cmd.exe: Support IF..ELSE processing tolerate multiline/part lines. 2007-06-18 14:24:23 +02:00
Jason Edmeades
929a92f3c4 cmd.exe: GOTO throws away any preloaded multi part/line command. 2007-06-18 14:22:57 +02:00
Jason Edmeades
a88a6c802a cmd.exe: Add basic support for && and (...) syntax. 2007-06-18 14:22:07 +02:00
Jason Edmeades
b8aa5fc586 cmd.exe: Convert cmd to Unicode. 2007-06-04 14:44:46 +02:00
Jason Edmeades
5cc492c783 cmd.exe: Move English constants into NLS files. 2007-06-04 14:10:04 +02:00
Jason Edmeades
612dc9d35d cmd.exe: Support SHIFT /n option. 2007-03-08 13:38:27 +01:00
Francois Gouget
7b0cde8f84 Assorted spelling fixes. 2007-03-06 21:51:35 +01:00
Francois Gouget
e46b99d238 cmd: Fix compilation on systems that don't support nameless unions. 2007-03-05 12:13:30 +01:00
Alexandre Julliard
abfe105c2f cmd: Fix silly local variables indentation that breaks diff -p. 2007-03-01 12:43:19 +01:00
Jason Edmeades
a7c5906b62 cmd.exe: Fix parameter parsing returns.
Only return valid values for the location of the parameter if it is
the one requested. Currently returns address when ANY quoted or
bracketed parameter found.
2007-02-28 14:29:18 +01:00
Jason Edmeades
409368eb4c cmd.exe: Prompt during del *.* and del *. 2007-02-28 14:28:26 +01:00