Part A: Analysis & Research
Examine any Delphi application directories of your choice used in Programming 1, or refer to the copy area for directory examples.
Find out which files are necessary to be:
• included in a distribution of simple Delphi applications (ie. without ActiveX, DLL or Databases support via Delphi’s BDE)
• kept as source code so that Delphi 7.x can re-build the project.
Your task is to write a batch file that will delete (only) the Delphi files in the current directory which are not needed to run a Delphi application, or to rebuild the application from the source files. No other files should be deleted.
The batch file should be named DCLEANUP.BAT, and has one optional parameter “/S” (Safe mode).
After running DCLEANUP /S
The current directory should contain only:
• The files necessary for the distribution of an application (i.e. the .exe , .dll file & any data files)
• The files that would allow Delphi 7.x to re-build the project, including extra files whose extensions are : *.res, *.cfg and *.dof.
• Any other non-Delphi files (e.g. .dat, gif, jpg, htm,…) that were there previously.
After running DCLEANUP
The current directory should contain:
• The minimum collection of files that would allow Delphi 7.x to re-build the project (i.e. without extra files).
• Any other non-Delphi files (e.g. .dat, gif, jpg, htm,…) that were there previously.
In both cases, all normal DOS output to the screen should be suppressed.
After running DCLEANUP /? only help information related to usage of the program should be displayed without any file deletion. If DCLEANUP.BAT file is renamed, then help information would automatically display its correct file name.
[ Last edited by willsort on 2005-9-18 at 18:42 ]
Examine any Delphi application directories of your choice used in Programming 1, or refer to the copy area for directory examples.
Find out which files are necessary to be:
• included in a distribution of simple Delphi applications (ie. without ActiveX, DLL or Databases support via Delphi’s BDE)
• kept as source code so that Delphi 7.x can re-build the project.
Your task is to write a batch file that will delete (only) the Delphi files in the current directory which are not needed to run a Delphi application, or to rebuild the application from the source files. No other files should be deleted.
The batch file should be named DCLEANUP.BAT, and has one optional parameter “/S” (Safe mode).
After running DCLEANUP /S
The current directory should contain only:
• The files necessary for the distribution of an application (i.e. the .exe , .dll file & any data files)
• The files that would allow Delphi 7.x to re-build the project, including extra files whose extensions are : *.res, *.cfg and *.dof.
• Any other non-Delphi files (e.g. .dat, gif, jpg, htm,…) that were there previously.
After running DCLEANUP
The current directory should contain:
• The minimum collection of files that would allow Delphi 7.x to re-build the project (i.e. without extra files).
• Any other non-Delphi files (e.g. .dat, gif, jpg, htm,…) that were there previously.
In both cases, all normal DOS output to the screen should be suppressed.
After running DCLEANUP /? only help information related to usage of the program should be displayed without any file deletion. If DCLEANUP.BAT file is renamed, then help information would automatically display its correct file name.
[ Last edited by willsort on 2005-9-18 at 18:42 ]
