Agregar archivos de proyecto.

This commit is contained in:
2025-09-19 08:29:41 +02:00
parent edfbc0de34
commit 4304e21d71
6 changed files with 1055 additions and 0 deletions

22
Utilidades.cs Normal file
View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace tsCorreos
{
internal class Utilidades
{
public static string ObtieneDirectorioAleatorio()
{
string sDir = System.IO.Path.GetTempPath() + System.IO.Path.GetRandomFileName();
while (System.IO.Directory.Exists(sDir))
{
sDir = System.IO.Path.GetTempPath() + "\\" + System.IO.Path.GetRandomFileName();
}
System.IO.Directory.CreateDirectory(sDir);
return sDir;
}
}
}