|
|
@ -218,8 +218,11 @@ func WMIQueryWithContext(ctx context.Context, query string, dst interface{}, con
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Convert paths using native DOS format like:
|
|
|
|
// Convert paths using native DOS format like:
|
|
|
|
|
|
|
|
//
|
|
|
|
// "\Device\HarddiskVolume1\Windows\systemew\file.txt"
|
|
|
|
// "\Device\HarddiskVolume1\Windows\systemew\file.txt"
|
|
|
|
|
|
|
|
//
|
|
|
|
// into:
|
|
|
|
// into:
|
|
|
|
|
|
|
|
//
|
|
|
|
// "C:\Windows\systemew\file.txt"
|
|
|
|
// "C:\Windows\systemew\file.txt"
|
|
|
|
func ConvertDOSPath(p string) string {
|
|
|
|
func ConvertDOSPath(p string) string {
|
|
|
|
rawDrive := strings.Join(strings.Split(p, `\`)[:3], `\`)
|
|
|
|
rawDrive := strings.Join(strings.Split(p, `\`)[:3], `\`)
|
|
|
|