Relative Content

Tag Archive for windowsbatch-filedirectory

Detect where the user folders are located, C: or D: partition

I’m writing a .bat code that copies a .lnk file to the Desktop, it is meant to be used locally in my company, but my problem is that, some computers we have, have only the disk C: and others we move the folders (desktop, documents, …) to D:UsersUser creating this difference of configuraion, is there a way that I can know if the computer has this change and then redirect the .lnk file to the right desktop?