Exemplo n.º 1
0
func ShellDelete(fileSpec string) error {
	return wrappers.SHFileOperation(&wrappers.SHFILEOPSTRUCT{
		Func:  wrappers.FO_DELETE,
		From:  MakeDoubleNullTerminatedLpstr(fileSpec),
		Flags: wrappers.FOF_NO_UI,
	})
}
Exemplo n.º 2
0
func ShellCopy(source string, destination string) error {
	return wrappers.SHFileOperation(&wrappers.SHFILEOPSTRUCT{
		Func:  wrappers.FO_COPY,
		From:  MakeDoubleNullTerminatedLpstr(source),
		To:    MakeDoubleNullTerminatedLpstr(destination),
		Flags: wrappers.FOF_NO_UI,
	})
}