Friday, April 26, 2019

Operating systems Essay Example | Topics and Well Written Essays - 1000 words

Operating systems - Essay ExampleThis program is in the complicity level three since it is able to create a batch data file to run the automatic gumption up process. The interaction takes place through a dialogue in a command direct contrast mode. It will also be able to operate in a work schedule much(prenominal) that it can run repeatedly. It will run in a multiple back up effect for moving m whatever files in the same session. The backup system will present the menu in command line forms through the same dialogue system. However, the naming system will be a dynamic naming system depending on the substance abusers discretion, where the system will allow the user to specify the naming protocol, either by use of incremental alphabetical and numerical characters and perhaps connect to the days date. The changes in the codes of the batch file will alter the way the file runs. It checks the handiness of the source of the files to be backed up as well as the destination directories which are in existence. Simple Source code repercussion off variables wane purpose = CBackup set folder = %date7,2% set backupcmd = xcopy /s /c /d /e /h /i /r /k /y snap off echo Backing up directory... %backupcommand% CProgram Filesdir1 %dirve%%folder1% wear out echo The file Backup process Completed successfully relegate pause pause We save the file as backup.bat and we see the icon below On running the file the output below appears dissolvent solicit any cay to continue . .. Backing up directory CProgram Filesdir1 is not recognize as an internal or external command, operable program or batch file. Press any let on to continue . . . The file Backup process Completed successfully Press any key to continue . . . Advanced Source code echo off Declaring source code variables set drive = CBatchBackup set bapcmd = xcopy /s /c /d /e /h /i /r/y pause pause echo Program for backing up the Documents... %bapcmd% %USERPROFILE%My Documents %D%My Documents echo Backing up the Favorites... %bapcmd% %USERPROFILE%Site %C% bapcmd pause pause echo The system is Backing up all the Em and address book. %bapcmd% %USERPROFILE%Applic Data FilesMicrosoftAddBk %C% My Address Book %bapcmd% %USERPROFILE%Local Settings Applic DataIdentities %C%Outlook depict pause pause echo System is Backing up all Ems and Em contacts in MS Outlook express %bapcmd% %USERPROFILE%s Applic DataMS Outlook %C%Outlook pause pause echo System Backing up Registry********* if not exist %C%Registry mkdir %D%Registry if exist %C%Registryregbackup.reg del %D%Registryregbackup.reg regedit /e %D%Registryregbackup.reg pause pause Registry Backup Completed Successfully use below syntax to backup new(prenominal) directories... %bapcmd% C %drive% % D %drive% echo System successfully completes Backup Process pause pause pause Result Press any key to continue . . . Press any key to continue . . . Program for backing up the Documents... CUsersCOLOOMy Documents is not recognized as an internal or external com mand, operable program or batch file. Backing up the Favorites... CUsersCOLOOSite is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . . Press any key to continue . . . The system is Backing up all the Em and address book. The system cannot find the path specified. The system canno

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.