Make batch file always copy to root directory.

Score
0
Vote Up
February 1, 2012 at 05:29:57 Pacific
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:\


Reply ↓  Report •


#1
Vote Down
Score
2
Vote Up
February 1, 2012 at 05:41:06 Pacific

I found my answer, "%systemdrive%" will do what I need.

Reply ↓  Report •
Reply to Message Icon Start New Discussion
Related Posts

« crystal report from ms-ac... [Solved] Make a batch file lauch a... »