Go to the source code of this file.
◆ anonymous enum
Enumerator |
---|
REN_ATTRIBUTES | |
REN_ERROR | |
REN_NOTHING | |
REN_PROMPT | |
REN_QUIET | |
REN_SUBDIR | |
REN_TOTAL | |
Definition at line 38 of file ren.c.
◆ cmd_rename()
Definition at line 53 of file ren.c.
54{
62
67
71
74
77
79
82
84 {
86 return 0;
87 }
88
90
91
93
95 {
99 return 1;
100 }
101
102
104 {
105
107 {
109 {
111 {
114 break;
115
118 break;
119
122 break;
123
126 break;
127
130 break;
131
134 break;
135 }
136 }
137 nEvalArgs++;
138 }
139 }
140
141
144
145
146 if (
args < nEvalArgs + 2)
147 {
151 return 1;
152 }
153
154
156 {
158 continue;
160 srcPattern =
arg[
i-1];
161 }
162
164 {
166
167
168
170 nSlash++;
172 {
173 srcFILE++;
174 if (*srcFILE==
_T(
'\\')) nSlash++ ;
176 }
178
180 {
182 nSlash=0;
184 {
185 dstFILE++;
186 if (*dstFILE==
_T(
'\\')) nSlash++ ;
188 }
190
192 {
195 return 1;
196 }
197 }
198 else
199 {
201 dstFILE=dstPattern;
202 }
203 }
204
206 {
207 srcFILE=srcPattern;
209 {
212 return 1;
213 }
214 else
215 {
216 dstFILE=dstPattern;
217 }
218 }
219
220
223
226
228
230 {
232 }
233 do
234 {
235
237 continue;
238
239
241 continue;
242
243
244
247 {
248 continue;
249 }
250
252
253
258 {
260 {
262 while (*
p != 0 && *
p != *
q)
263 {
267 }
268 }
270 {
273 {
277 }
278 }
279 else
280 {
285 }
286 }
288
290 {
295 }
296 else
297 {
300 }
301
303
306
307
309 {
311 {
312 dwFiles++;
313 }
314 else
315 {
318 }
319 }
320 }
322
323
325
327 {
328 if (dwFiles == 1)
330 else
332 }
333
335 return 0;
336}
VOID error_file_not_found(VOID)
VOID error_req_param_missing(VOID)
VOID error_syntax(PCTSTR s)
VOID ConOutResPaging(BOOL StartPaging, UINT resID)
#define ConOutPrintf(szStr,...)
#define ConErrResPrintf(uID,...)
static VOID freep(LPSTR *p)
static LPSTR * split(LPSTR s, LPINT args)
#define INVALID_HANDLE_VALUE
BOOL WINAPI FindClose(HANDLE hFindFile)
GLdouble GLdouble GLdouble r
GLdouble GLdouble GLdouble GLdouble q
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define FILE_ATTRIBUTE_HIDDEN
#define FILE_ATTRIBUTE_SYSTEM
#define FILE_ATTRIBUTE_DIRECTORY
#define ConOutResPrintf(uID,...)
DWORD WINAPI GetLastError(void)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags