2 * WCMD - Wine-compatible command line interface.
22 void WCMD_batch (char *, char *, int);
23 void WCMD_change_tty (void);
24 void WCMD_clear_screen (void);
25 void WCMD_copy (void);
26 void WCMD_create_dir (void);
27 void WCMD_delete (int recurse
);
28 void WCMD_directory (void);
29 void WCMD_echo (char *);
30 void WCMD_for (char *);
31 void WCMD_give_help (char *command
);
32 void WCMD_goto (void);
33 void WCMD_if (char *);
34 void WCMD_move (void);
35 void WCMD_output (char *format
, ...);
36 void WCMD_parse (char *s
, char *q
, char *p1
, char *p2
);
37 void WCMD_pause (void);
38 void WCMD_print_error (void);
39 void WCMD_process_command (char *command
);
40 void WCMD_remove_dir (void);
41 void WCMD_rename (void);
42 void WCMD_run_program (char *command
);
43 void WCMD_setshow_attrib (void);
44 void WCMD_setshow_date (void);
45 void WCMD_setshow_default (void);
46 void WCMD_setshow_env (char *command
);
47 void WCMD_setshow_path (void);
48 void WCMD_setshow_prompt (void);
49 void WCMD_setshow_time (void);
50 void WCMD_shift (void);
51 void WCMD_show_prompt (void);
52 void WCMD_type (void);
53 void WCMD_verify (char *command
);
54 void WCMD_version (void);
55 int WCMD_volume (int mode
, char *command
);
57 char *WCMD_fgets (char *s
, int n
, HANDLE stream
);
58 char *WCMD_parameter (char *s
, int n
, char **where
);
59 char *WCMD_strtrim_leading_spaces (char *string
);
60 void WCMD_strtrim_trailing_spaces (char *string
);
62 /* Data structure to hold context when executing batch files */
65 char *command
; /* The command which invoked the batch file */
66 HANDLE h
; /* Handle to the open batch file */
67 int shift_count
; /* Number of SHIFT commands executed */
68 void *prev_context
; /* Pointer to the previous context block */
71 #endif /* !RC_INVOKED */
74 * Serial nos of builtin commands. These constants must be in step with
75 * the list of strings defined in WCMD.C, and WCMD_EXIT *must* always be
78 * Yes it *would* be nice to use an enumeration here, but the Resource
79 * Compiler won't accept resource IDs from enumerations :-(
100 #define WCMD_MKDIR 18
103 #define WCMD_PAUSE 21
104 #define WCMD_PROMPT 22
107 #define WCMD_RENAME 25
109 #define WCMD_RMDIR 27
111 #define WCMD_SHIFT 29
114 #define WCMD_VERIFY 32