There is are dos commands that lets you do this. You could use ShellExec or something to run them with the proper parameters.