• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. File and Registry Access > Manipulating Files and Folders

Manipulating Files and Folders

One of the principal reasons people write scripts is to work with files and folders. Although Windows Explorer makes it very easy to use the mouse to copy and move files, when you have a large number of files and folders to work with, the GUI can quickly become very tedious. Here are some tasks that would be a nightmare with Explorer but are a snap with scripting:

  • Renaming several files

  • Changing the attributes of all the files in a folder and in all levels of subfolders underneath it

  • Printing all DOC files under 1MB in size from a Zip disk with Word and all of the BMP image files with the Paint program

  • Periodically scanning a folder for files with a certain name or file type and automatically printing or processing them in some way


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint