There is no way I know of that will do that from a batch command file of any sort.

It may not be a good idea to do it, for the reasons stated above.