parent
32d83887d3
commit
43715eeb7f
|
@ -121,7 +121,7 @@ module ShadowCopy
|
|||
#
|
||||
def create_shadowcopy(volume)
|
||||
result = wmic_query("shadowcopy call create \"ClientAccessible\", \"#{volume}\"")
|
||||
puts result
|
||||
|
||||
retval = result.match(/ReturnValue = (\d)/)
|
||||
case retval[1].to_i
|
||||
when 0
|
||||
|
|
|
@ -50,10 +50,8 @@ module WMIC
|
|||
|
||||
if extapi
|
||||
result = session.extapi.clipboard.get_data.first
|
||||
session.extapi.clipboard.set_text("")
|
||||
|
||||
if result[:type] == :text
|
||||
result_text = result[:data]
|
||||
if result[1].has_key? 'Text'
|
||||
result_text = result[1]['Text']
|
||||
else
|
||||
result_text = ""
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue