Electron microscopy
 
Manipulation of File, Folder Names and Create New Folder
- Integrated Circuits -
- An Online Book -
Integrated Circuits                                                                                   http://www.globalsino.com/ICs/        


=================================================================================

 

The Python os.mkdir() method is used to create a directory with the name path and the provided numeric mode. If the specified directory already exists, then this method throws a FileExistsError.

=========================================================

Create a new folder if the specific folder does not exist. Code:
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened
Output:        
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened

=========================================================

List all files and extentions of the files in a folder with "or" to catch different cases. Code:
         Upload Files to Webpages
       Input:    
         Upload Files to Webpages
       Output:    
         Upload Files to Webpages

============================================

Create a new folder if the specific folder does not exist. Code:
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened
Output:        
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened

=========================================================

Create file name with variables. Code:
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened
Output:        
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened

=========================================================

Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened. Code:
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened
Input:        
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened        
Output 1:
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened       
Output 2:
        Create a new folder and then copy all files from a folder to the new folder and rename the file, and then open the file. If the folder exists, then no file will be copied, but the file will still be opened

=========================================================

Screen shot of a defined region on the monitor: code:
         Snipping tool: take a screen shot from the full screen

=========================================================

File name: code:
         Snipping tool: take a screen shot from the full screen

=========================================================

Print and export the folder names and file names (with or without extensions) from a folder into a text file: code:
         Snipping tool: take a screen shot from the full screen
Output:          
         Snipping tool: take a screen shot from the full screen

=========================================================

Rename all files and folders in a directory: code:
         Snipping tool: take a screen shot from the full screen
Input:          
         Snipping tool: take a screen shot from the full screen
Output:          
         Snipping tool: take a screen shot from the full screen
         Snipping tool: take a screen shot from the full screen


         
         
         
         

 

=================================================================================