I get a text file that contains a date string, what I want to do is execute a string ... will perform the search and replace in file, other wise sed will just output the replaced string to console ... /..\/node_2/%day%\/node_2/" D:\www\node\index.htm It replace a string like the following 03/node_2 ... . Create a new task schedule on Windows and set up the execution time and set the bat file