Began development on function for scanning inserted drives
This commit is contained in:
parent
c893029596
commit
23b2fe177b
1 changed files with 11 additions and 0 deletions
|
@ -4,11 +4,22 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.IO;
|
||||
using System.Timers;
|
||||
|
||||
namespace Saviour_Backup_System
|
||||
{
|
||||
public class USBTools
|
||||
{
|
||||
public static void initDriveScan(){
|
||||
Timer scanTimer = new Timer();
|
||||
scanTimer.Elapsed += new ElapsedEventHandler(driveScanTick);
|
||||
scanTimer.Interval = 5000;
|
||||
scanTimer.Start();
|
||||
}
|
||||
private static void driveScanTick(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
public static DriveInfo[] getConnectedDrives()
|
||||
{
|
||||
List<DriveInfo> drivesList = new List<DriveInfo>();
|
||||
|
|
Reference in a new issue