* 24-Jan-1998 Eric Kohl
* Redirection safe!
*
- * 02-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 02-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*
- * 02-Feb-2008 (Christoph von Wittich) <christoph_vw@reactos.org>)
+ * 02-Feb-2008 (Christoph von Wittich <christoph_vw@reactos.org>)
* rewrote alias handling for doskey compat
*/
* 23-Jan-1999 Eric Kohl
* Added handling of multiple filenames.
*
- * 02-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 02-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
bc->mem = (char *)cmd_alloc(bc->memsize+1); /* 1 extra for '\0' */
/* if memory is available, read it in and close the file */
- if (bc->mem != NULL)
+ if (bc->mem != NULL)
{
TRACE ("BatchFile2Mem memory %08x - %08x\n",bc->mem,bc->memsize);
SetFilePointer (hBatchFile, 0, NULL, FILE_BEGIN);
ReadFile(hBatchFile, (LPVOID)bc->mem, bc->memsize, &bc->memsize, NULL);
bc->mem[bc->memsize]='\0'; /* end this, so you can dump it as a string */
bc->memfree=TRUE; /* this one needs to be freed */
- }
- else
+ }
+ else
{
bc->memsize=0; /* this will prevent mem being accessed */
bc->memfree=FALSE;
HANDLE hFile = 0;
SetLastError(0);
- if (bc && bc->mem)
+ if (bc && bc->mem)
{
TCHAR fpname[MAX_PATH];
GetFullPathName(fullname, sizeof(fpname) / sizeof(TCHAR), fpname, NULL);
- if (_tcsicmp(bc->BatchFilePath,fpname)==0)
+ if (_tcsicmp(bc->BatchFilePath,fpname)==0)
same_fn=TRUE;
}
TRACE ("Batch: (\'%s\', \'%s\', \'%s\') same_fn = %d\n",
GetFullPathName(fullname, sizeof(bc->BatchFilePath) / sizeof(TCHAR), bc->BatchFilePath, NULL);
/* if a new batch file, load it into memory and close the file */
- if (!same_fn)
+ if (!same_fn)
{
BatchFile2Mem(hFile);
CloseHandle(hFile);
lpString = lpBuffer;
#endif
/* read all chars from memory until a '\n' is encountered */
- if (bc->mem)
+ if (bc->mem)
{
- for (; (bc->mempos < bc->memsize && len < (nBufferLength-1)); len++)
- {
+ for (; (bc->mempos < bc->memsize && len < (nBufferLength-1)); len++)
+ {
lpString[len] = bc->mem[bc->mempos++];
- if (lpString[len] == '\n' )
+ if (lpString[len] == '\n' )
{
len++;
break;
INT shiftlevel[10];
BOOL bEcho; /* Preserve echo flag across batch calls */
REDIRECTION *RedirList;
- PARSED_COMMAND *current;
+ PARSED_COMMAND *current;
struct _SETLOCAL *setlocal;
} BATCH_CONTEXT, *LPBATCH_CONTEXT;
* 20-Jan-1999 (Eric Kohl)
* Redirection ready!
*
- * 02-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 02-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 20-Jan-1999 (Eric Kohl)
* Unicode and redirection safe!
*
- * 02-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 02-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 23-Dec-1998 (Eric Kohl)
* Started.
*
- * 02-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 02-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 20-Jan-1998 (Eric Kohl)
* Redirection ready!
*
- * 02-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 02-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 14-Oct-1999 (Paolo Pantaleo <paolopan@freemail.it>)
* 4nt's syntax implemented.
*
- * 03-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 03-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Move all hardcoded strings in En.rc.
*/
* 20-Jan-1999 (Eric Kohl)
* started
*
- * 03-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 03-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*
- * 01-Jul-2005 (Brandon Turner) <turnerb7@msu.edu>
+ * 01-Jul-2005 (Brandon Turner <turnerb7@msu.edu>)
* Added ConPrintfPaging and ConOutPrintfPaging
*
- * 02-Feb-2007 (Paolo Devoti) <devotip at gmail.com>
+ * 02-Feb-2007 (Paolo Devoti <devotip at gmail.com>)
* Fixed ConPrintfPaging
*/
* 27-Oct-1998 (Eric Kohl)
* Disabled prompting when used in batch mode.
*
- * 03-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>)
+ * 03-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcode string to En.rc
*
- * 13-Jul-2005 (Brandon Turner) <turnerb7@msu.edu>)
+ * 13-Jul-2005 (Brandon Turner <turnerb7@msu.edu>)
* Rewrite to clean up copy and support wildcard.
*
- * 20-Jul-2005 (Brandon Turner) <turnerb7@msu.edu>)
+ * 20-Jul-2005 (Brandon Turner <turnerb7@msu.edu>)
* Add touch syntax. "copy arp.exe+,,"
* Copy command is now completed.
*/
* 04-Feb-1999 (Eric Kohl)
* Fixed date input bug.
*
- * 03-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 03-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 13-Jul-2000 (Eric Kohl)
* Implemented 'echo.' and 'echoerr.'.
*
- * 28-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 28-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 02-Feb-1999 (Eric Kohl)
* Use FormatMessage() for error reports.
*
- * 28-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 28-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* Implemented preservation of echo flag. Some other for related
* code in other files fixed, too.
*
- * 28-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 28-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 01-Sep-1999 (Eric Kohl)
* Started.
*
- * 28-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 28-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 27-Jan-1999 (Eric Kohl)
* Added help text ("/?").
*
- * 28-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 28-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 19-Jan-1998 (Eric Kohl)
* Unicode ready!
*
- * 28-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 28-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 01-Sep-1999 (Eric Kohl)
* Started.
*
- * 28-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 28-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 06-Nov-1999 (Eric Kohl)
* Added PagePrompt() and FilePrompt().
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 03-Feb-1999 (Eric Kohl)
* Added "/N" option.
*
-* 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>)
-* Remove all hardcode string to En.rc
+* 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
+* Remove all hardcoded strings in En.rc
*
-* 24-Jun-2005 (Brandon Turner) <turnerb7@msu.edu>)
+* 24-Jun-2005 (Brandon Turner <turnerb7@msu.edu>)
* Fixed bug to allow MS style wildcards + code clean up
* added /y and /-y
*/
* 25 Aug 1999
* started - Paolo Pantaleo <paolopan@freemail.it>
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
break;
}
}
-
+
/* Check for numbered redirection */
if ((Char >= _T('0') && Char <= _T('9') &&
(ParsePos == &ParseLine[1] || IsSeparator(ParsePos[-2]))
* 24-Jan-1999 (Eric Kohl)
* Fixed Win32 environment handling.
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
#include "precomp.h"
* 24-Jan-1999 (Eric Kohl)
* Fixed Win32 environment handling.
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
#include "precomp.h"
* 17-Oct-2001 (Eric Kohl)
* Implemented basic rename code.
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*
- * 25-Nov-2008 (Victor Martinez) <vicmarcal@hotmail.com> Patch dedicated to Myrjala because her comprenhension and love :D
+ * 25-Nov-2008 (Victor Martinez <vicmarcal@hotmail.com>)
+ * Patch dedicated to Myrjala because her comprenhension and love :D
* Fixing following Bugs:
* -Wrong behavior with wildcards when Source and Destiny are Paths(FIXED).
* -Wrong general behavior (MSDN:"Rename cant move files between subdirectories")(FIXED)
* 30 Aug 1999
* started - Paolo Pantaleo <paolopan@freemail.it>
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*
*/
* 25-Feb-1999 (Eric Kohl)
* Fixed little bug.
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
*
* 1 Feb 2008 (Christoph von Wittich)
* started.
-*/
+*/
#include "precomp.h"
* 20-Jan-1999 (Eric Kohl)
* Unicode and redirection safe!
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 24-Jul-1999 (Eric Kohl)
* Started.
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 04-Feb-1999 (Eric Kohl)
* Fixed time input bug.
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc.
*/
* History:
* 1999-02-11 Emanuele Aliberti
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 19-Jan-1999 (Paolo Pantaleo <paolopan@freemail.it>)
* Added multiple file support (copied from y.c)
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* 20-Jan-1999 (Eric Kohl)
* Unicode and redirection ready!
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/
* activate and window in a single file using mainly the same code
* (nice size optimization :)
*
- * 30-Apr-2005 (Magnus Olsen) <magnus@greatlord.com>
+ * 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
* Remove all hardcoded strings in En.rc
*/