Essay Questions:
1. Describe a way to save space on a volume that is normally used by Internet Explorer.
Reduce the amount of space IE is allowed to use to cache. Open IE, click tools, Internet Options. On the General tab under browsing history, click Settings. In the Temporary Internet Files and History Settings dialog box, change the amount of disc space used, don't go below 50MB per MS recommendations.
2. List and Describe that status indicators used by dynamic disks.
*Offline - indicates a dynamic disk has become corrupted or unavailable.
*Foreign drive - if you insert a hard drive that has been configured on another machine, you will see a foreign drive indicated in Disk Management.
*Healthy (At Risk) - indicates that the disk can be accessed, but I/O errors have occurred.
3. Write a small batch script that will copy all files from one directory to another new directory (which you create) and also "log" the files copied to a file named "mycopiedfiles.log". (Hint:Robocopy). Please document what you did on your blog and paste a link in the answer portion of this question. In the blog give a narrative of the problems you encountered.
I created a batch script using robocopy and in the script I wrote the command to create a log file. I had several errors while writing the script. I specified the documents of the folder in the script and had errors, when I took out the specified documents then the files copied. I also, had an error with the logging part of the script but I did not put a space in between the commands. I have placed a link to all my work on my blog which is: http://williamsamanda.weebly.com/index.html
My copy of CMD for errors!
/FFT :: assume FAT File Times (2-second granularity).
/DST :: compensate for one-hour DST time differences.
/XJD :: eXclude Junction points for Directories.
/XJF :: eXclude Junction points for Files.
::
:: Retry Options :
:: /R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.
/REG :: Save /R:n and /W:n in the Registry as default settings.
/TBD :: wait for sharenames To Be Defined (retry error 67).
:::: Logging Options :
:: /L :: List only - don't copy, timestamp or delete any files.
/X :: report all eXtra files, not just those selected.
/V :: produce Verbose output, showing skipped files.
/TS :: include source file Time Stamps in the output.
/FP :: include Full Pathname of files in the output.
/BYTES :: Print sizes as bytes.
/NS :: No Size - don't log file sizes.
/NC :: No Class - don't log file classes.
/NFL :: No File List - don't log file names.
/NDL :: No Directory List - don't log directory names.
/NP :: No Progress - don't display % copied.
/ETA :: show Estimated Time of Arrival of copied files.
/LOG:file :: output status to LOG file (overwrite existing log).
/LOG+:file :: output status to LOG file (append to existing log).
/UNILOG:file :: output status to LOG file as UNICODE (overwrite existing
log).
/UNILOG+:file :: output status to LOG file as UNICODE (append to existing
log).
/TEE :: output to console window, as well as the log file.
/NJH :: No Job Header.
/NJS :: No Job Summary.
/UNICODE :: output status as UNICODE.
::
:: Job Options :
::
/JOB:jobname :: take parameters from the named JOB file.
/SAVE:jobname :: SAVE parameters to the named job file
/QUIT :: QUIT after processing command line (to view parameters).
/NOSD :: NO Source Directory is specified.
/NODD :: NO Destination Directory is specified.
/IF :: Include the following Files.
C:\Users\amanda>cd ..desktop
The system cannot find the path specified.
C:\Users\amanda>cd \desktop
The system cannot find the path specified.
C:\Users\amanda>cd desktop
C:\Users\amanda\Desktop>type copy.cmd
robocopy G:\*.txt C:\Users\amanda\Desktop\test /copy:DT>/TS/mycopiedfiles.log
C:\Users\amanda\Desktop>copy
The syntax of the command is incorrect.
C:\Users\amanda\Desktop>type bob.cmd
robocopy G:\*.txt C:\Users\amanda\Desktop\test /copy:DT>/TS/mycopiedfiles.log
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy G:\*.txt C:\Users\amanda\Desktop\test /copy:DT
1>/TS/mycopiedfiles.log
The system cannot find the path specified.
C:\Users\amanda\Desktop>type bob.cmd
robocopy G:\*.txt C:\Users\amanda\Desktop\test \copy:DT>\TS\mycopiedfiles.log
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy G:\*.txt C:\Users\amanda\Desktop\test \copy:DT
1>\TS\mycopiedfiles.log
The system cannot find the path specified.
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy G:\*.txt C:\Users\amanda\Desktop\test /R:0 /W:0
/LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:25:28 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "G:\*.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy G:\test\*.txt C:\Users\amanda\Desktop\test /R:0
/W:0 /LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:31:37 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "G:\test\*.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test\*.txt C:\Users\amanda\Desktop\test /R:0
/W:0 /LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:33:25 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "C:\test\*.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test\*.*
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:36:08 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "C:\test\*.*"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>C:\Users\amanda\Desktop\test /R:0 /W:0 /LOG:Mycopiedfile
s.log /NFL /NDL
'C:\Users\amanda\Desktop\test' is not recognized as an internal or external comm
and,
operable program or batch file.
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test\*.* C:\Users\amanda\Desktop\test /Copy:
DAT/R:0 /W:0 /LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:43:22 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "C:\test\*.*"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test C:\Users\amanda\Desktop\test /Copy:DAT/
R:0 /W:0 /LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:44:13 2012
Source - C:\test\
Dest - C:\Users\amanda\Desktop\test\
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #3 : "/Copy:DAT/R:0"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test C:\Users\amanda\Desktop\test /Copy:DAT
/R:0 /W:0 /LOG:Mycopiedfiles.log /NFL /NDL
Log File : C:\Users\amanda\Desktop\Mycopiedfiles.log
C:\Users\amanda\Desktop>
1. Describe a way to save space on a volume that is normally used by Internet Explorer.
Reduce the amount of space IE is allowed to use to cache. Open IE, click tools, Internet Options. On the General tab under browsing history, click Settings. In the Temporary Internet Files and History Settings dialog box, change the amount of disc space used, don't go below 50MB per MS recommendations.
2. List and Describe that status indicators used by dynamic disks.
*Offline - indicates a dynamic disk has become corrupted or unavailable.
*Foreign drive - if you insert a hard drive that has been configured on another machine, you will see a foreign drive indicated in Disk Management.
*Healthy (At Risk) - indicates that the disk can be accessed, but I/O errors have occurred.
3. Write a small batch script that will copy all files from one directory to another new directory (which you create) and also "log" the files copied to a file named "mycopiedfiles.log". (Hint:Robocopy). Please document what you did on your blog and paste a link in the answer portion of this question. In the blog give a narrative of the problems you encountered.
I created a batch script using robocopy and in the script I wrote the command to create a log file. I had several errors while writing the script. I specified the documents of the folder in the script and had errors, when I took out the specified documents then the files copied. I also, had an error with the logging part of the script but I did not put a space in between the commands. I have placed a link to all my work on my blog which is: http://williamsamanda.weebly.com/index.html
My copy of CMD for errors!
/FFT :: assume FAT File Times (2-second granularity).
/DST :: compensate for one-hour DST time differences.
/XJD :: eXclude Junction points for Directories.
/XJF :: eXclude Junction points for Files.
::
:: Retry Options :
:: /R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.
/REG :: Save /R:n and /W:n in the Registry as default settings.
/TBD :: wait for sharenames To Be Defined (retry error 67).
:::: Logging Options :
:: /L :: List only - don't copy, timestamp or delete any files.
/X :: report all eXtra files, not just those selected.
/V :: produce Verbose output, showing skipped files.
/TS :: include source file Time Stamps in the output.
/FP :: include Full Pathname of files in the output.
/BYTES :: Print sizes as bytes.
/NS :: No Size - don't log file sizes.
/NC :: No Class - don't log file classes.
/NFL :: No File List - don't log file names.
/NDL :: No Directory List - don't log directory names.
/NP :: No Progress - don't display % copied.
/ETA :: show Estimated Time of Arrival of copied files.
/LOG:file :: output status to LOG file (overwrite existing log).
/LOG+:file :: output status to LOG file (append to existing log).
/UNILOG:file :: output status to LOG file as UNICODE (overwrite existing
log).
/UNILOG+:file :: output status to LOG file as UNICODE (append to existing
log).
/TEE :: output to console window, as well as the log file.
/NJH :: No Job Header.
/NJS :: No Job Summary.
/UNICODE :: output status as UNICODE.
::
:: Job Options :
::
/JOB:jobname :: take parameters from the named JOB file.
/SAVE:jobname :: SAVE parameters to the named job file
/QUIT :: QUIT after processing command line (to view parameters).
/NOSD :: NO Source Directory is specified.
/NODD :: NO Destination Directory is specified.
/IF :: Include the following Files.
C:\Users\amanda>cd ..desktop
The system cannot find the path specified.
C:\Users\amanda>cd \desktop
The system cannot find the path specified.
C:\Users\amanda>cd desktop
C:\Users\amanda\Desktop>type copy.cmd
robocopy G:\*.txt C:\Users\amanda\Desktop\test /copy:DT>/TS/mycopiedfiles.log
C:\Users\amanda\Desktop>copy
The syntax of the command is incorrect.
C:\Users\amanda\Desktop>type bob.cmd
robocopy G:\*.txt C:\Users\amanda\Desktop\test /copy:DT>/TS/mycopiedfiles.log
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy G:\*.txt C:\Users\amanda\Desktop\test /copy:DT
1>/TS/mycopiedfiles.log
The system cannot find the path specified.
C:\Users\amanda\Desktop>type bob.cmd
robocopy G:\*.txt C:\Users\amanda\Desktop\test \copy:DT>\TS\mycopiedfiles.log
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy G:\*.txt C:\Users\amanda\Desktop\test \copy:DT
1>\TS\mycopiedfiles.log
The system cannot find the path specified.
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy G:\*.txt C:\Users\amanda\Desktop\test /R:0 /W:0
/LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:25:28 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "G:\*.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy G:\test\*.txt C:\Users\amanda\Desktop\test /R:0
/W:0 /LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:31:37 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "G:\test\*.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test\*.txt C:\Users\amanda\Desktop\test /R:0
/W:0 /LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:33:25 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "C:\test\*.txt"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test\*.*
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:36:08 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "C:\test\*.*"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>C:\Users\amanda\Desktop\test /R:0 /W:0 /LOG:Mycopiedfile
s.log /NFL /NDL
'C:\Users\amanda\Desktop\test' is not recognized as an internal or external comm
and,
operable program or batch file.
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test\*.* C:\Users\amanda\Desktop\test /Copy:
DAT/R:0 /W:0 /LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:43:22 2012
Source -
Dest -
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #1 : "C:\test\*.*"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test C:\Users\amanda\Desktop\test /Copy:DAT/
R:0 /W:0 /LOG:Mycopiedfiles.log /NFL /NDL
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Mon Sep 24 10:44:13 2012
Source - C:\test\
Dest - C:\Users\amanda\Desktop\test\
Files :
Options : /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
ERROR : Invalid Parameter #3 : "/Copy:DAT/R:0"
Simple Usage :: ROBOCOPY source destination /MIR
source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir (drive:\path or \\server\share\path).
/MIR :: Mirror a complete directory tree.
For more usage information run ROBOCOPY /?
**** /MIR can DELETE files as well as copy them !
C:\Users\amanda\Desktop>bob
C:\Users\amanda\Desktop>robocopy C:\test C:\Users\amanda\Desktop\test /Copy:DAT
/R:0 /W:0 /LOG:Mycopiedfiles.log /NFL /NDL
Log File : C:\Users\amanda\Desktop\Mycopiedfiles.log
C:\Users\amanda\Desktop>