G
Guest
Dear all,
I need to determine the available disk space on a certain drive
for that I have used the following
mngObj = "win32_logicaldisk.deviceid=""E:"""
m_diskMngt = New ManagementObject(mngObj)
This works fine, but now my drive letter is a variable and I try to rebuild
that string as :
mngObj = "win32_logicaldisk.deviceid=" &"''" &myDrive &"''''"
Always get error of Invalid parameter,problem is the way to represent the
double quote for that function. IN my case I have use 2 time the ' characters
but seems to not work
Any help will be apprecaite
Regards
serge
I need to determine the available disk space on a certain drive
for that I have used the following
mngObj = "win32_logicaldisk.deviceid=""E:"""
m_diskMngt = New ManagementObject(mngObj)
This works fine, but now my drive letter is a variable and I try to rebuild
that string as :
mngObj = "win32_logicaldisk.deviceid=" &"''" &myDrive &"''''"
Always get error of Invalid parameter,problem is the way to represent the
double quote for that function. IN my case I have use 2 time the ' characters
but seems to not work
Any help will be apprecaite
Regards
serge