Make batch file always copy to root directory.

February 1, 2012 at 05:29:57
Specs: Windows 7
I need to know if there's a variable like %appdata% that signifies the root windows directory. For example currently my batch file copies everything into C:\

md C:\MCBackup\LIT\
Copy LIT\* C:\MCBackup\LIT\


I know that people running dual installations of windows might not be running this script on the C:\ drive.

Over view:

- Need to know if there's a variable that define the Root windows drive EX: C:\


See More: Make batch file always copy to root directory.

Report •

#1
February 1, 2012 at 05:41:06
I found my answer, "%systemdrive%" will do what I need.

Report •
Related Solutions


Ask Question