Add batch scripts for getting file checksum
This commit is contained in:
		
							parent
							
								
									6889755330
								
							
						
					
					
						commit
						b399a9e2c9
					
				
							
								
								
									
										11
									
								
								dotfiles/bin/file-checksum-md5.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								dotfiles/bin/file-checksum-md5.bat
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | @echo off | ||||||
|  | 
 | ||||||
|  | if exist %1\* ( | ||||||
|  | 	echo Run on a file | ||||||
|  | ) else ( | ||||||
|  | 	if exist "%~1_checksum-md5.txt" ( | ||||||
|  | 		del "%~1_checksum-md5.txt" | ||||||
|  | 	) | ||||||
|  | 	certutil.exe -hashfile "%~1" MD5 > "%~1_checksum-md5.txt" | ||||||
|  | 	start notepad "%~1_checksum-md5.txt" | ||||||
|  | ) | ||||||
							
								
								
									
										11
									
								
								dotfiles/bin/file-checksum-sha1.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								dotfiles/bin/file-checksum-sha1.bat
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | @echo off | ||||||
|  | 
 | ||||||
|  | if exist %1\* ( | ||||||
|  | 	echo Run on a file | ||||||
|  | ) else ( | ||||||
|  | 	if exist "%~1_checksum-sha1.txt" ( | ||||||
|  | 		del "%~1_checksum-sha1.txt" | ||||||
|  | 	) | ||||||
|  | 	certutil.exe -hashfile "%~1" SHA1 > "%~1_checksum-sha1.txt" | ||||||
|  | 	start notepad "%~1_checksum-sha1.txt" | ||||||
|  | ) | ||||||
							
								
								
									
										11
									
								
								dotfiles/bin/file-checksum-sha256.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								dotfiles/bin/file-checksum-sha256.bat
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | @echo off | ||||||
|  | 
 | ||||||
|  | if exist %1\* ( | ||||||
|  | 	echo Run on a file | ||||||
|  | ) else ( | ||||||
|  | 	if exist "%~1_checksum-sha256.txt" ( | ||||||
|  | 		del "%~1_checksum-sha256.txt" | ||||||
|  | 	) | ||||||
|  | 	certutil.exe -hashfile "%~1" SHA256 > "%~1_checksum-sha256.txt" | ||||||
|  | 	start notepad "%~1_checksum-sha256.txt" | ||||||
|  | ) | ||||||
							
								
								
									
										11
									
								
								dotfiles/bin/file-checksum-sha512.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								dotfiles/bin/file-checksum-sha512.bat
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | @echo off | ||||||
|  | 
 | ||||||
|  | if exist %1\* ( | ||||||
|  | 	echo Run on a file | ||||||
|  | ) else ( | ||||||
|  | 	if exist "%~1_checksum-sha512.txt" ( | ||||||
|  | 		del "%~1_checksum-sha512.txt" | ||||||
|  | 	) | ||||||
|  | 	certutil.exe -hashfile "%~1" SHA512 > "%~1_checksum-sha512.txt" | ||||||
|  | 	start notepad "%~1_checksum-sha512.txt" | ||||||
|  | ) | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user