Create a new windows form





The purpose of this script is to change the name of files/directories with spaces in the name to have a dash(-). So if a file/directory were named "A B", the new name would be A-B. The script will work on a directory specified on the command line and replace the spaces in the names for all files/directories underneath that directory.



Modify the script below following instructions in the script.



The options to the script are as follows:



-f the -f says to only rename files



-d the -d says to only rename directories



Both -d and and -f may be specified.



the name of the directory that you will be processing