I want to schedule a batch file to execute a command and redirect that output a text file.
This is my current solution:
Del \\10.112.232.10\Netbackup_Softwares\Personal\Bharath\VM_Query\switch.txt D:\VMware_Query\VM_Query.bat >> \\10.112.232.10\Netbackup_Softwares\Personal\Bharath\VM_Query\switch.txt
Windows Server 2012
When I tried with task scheduler its executing the command but not redirecting output to text file.
Command works fine when I execute from cmd prompt.