I will explain my use case later, the basic issue is this batch file run\'s fine in Win7 but not in Win 10. Both environments are the same except for the windows version.