Home
»
Discussion Forums
»
Scripts & Agent Procedures
»
%systemdrive% and #systemdrive#
Subscribe via RSS
Share this
Similar Posts
Monitoring Free Space on SYSTEMDRIVE
by
Kai Osthoff
on
May 10, 2012
Not Answered
Working Directory - no SystemDrive on C!
by
Kai Osthoff
on
Feb 22, 2011
Not Answered
Install of Windows Agent with SystemDrive NOT C fails
by
Kai Osthoff
on
Feb 24, 2011
Verified Answer
Details
2
Replies
0
Subscribers
Posted
over 14 years ago
Scripts & Agent Procedures
%systemdrive% and #systemdrive#
Posted by
LegacyPoster
on
Jul 1, 2006 7:20 AM
In one of the sample scripts created to do a disk defrag, the command to run the actual defrag is:
%windir%\system32\defrag.exe %systemdrive% -f -v >> #systemdrive#\temp\defrag.txt
Before this step, a variable was set to "systemdrive" by obtaining the Client Install Drive.
However, it is unclear to me if the two are the same and would always be the same.
Is %systemdrive% a set variable that is available to us to use in the script? If so, if the actual system drive was D: but the client was installed on C:, then this would not be the same, correct?
Thanks.
Vince
Legacy Forum Name: %systemdrive% and #systemdrive#,
Legacy Posted By Username: vplaza
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Jul 1, 2006 7:18 AM
your correct... in this sample I am combining 2 different ways of pulling variables. One using the windows variables and the other using the kaseya system scripting
Legacy Forum Name: Script Discussion,
Legacy Posted By Username: sourceminer
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Jul 1, 2006 7:20 AM
Thanks.
Legacy Forum Name: Script Discussion,
Legacy Posted By Username: vplaza
You have posted to a forum that requires a moderator to approve posts before they are publicly available.