Import all schtasks .xml files inside the current directory via batch
问题 I know it's possible to import multiple tasks like this: schtasks.exe /create /TN "Task 1 Name" /XML "Full_Path_of_Backup_XML_File" schtasks.exe /create /TN "Task 2 Name" /XML "Full_Path_of_Backup_XML_File" schtasks.exe /create /TN "Task 3 Name" /XML "Full_Path_of_Backup_XML_File" But I'd prefer a more dynamic way to import all schtasks .xml files inside the current directory. Much like this batch here (.xml instead of .reg): rem @echo off cls SET folder=%~dp0 for %%i in ("%folder%*.reg") do