Skip to content

Instantly share code, notes, and snippets.

Add-Type -TypeDefinition @'
using System.Runtime.InteropServices;
[Guid("5CDF2C82-841E-4546-9722-0CF74078229A"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
interface IAudioEndpointVolume {
// f(), g(), ... are unused COM method slots. Define these if you care
int f(); int g(); int h(); int i();
int SetMasterVolumeLevelScalar(float fLevel, System.Guid pguidEventContext);
int j();
int GetMasterVolumeLevelScalar(out float pfLevel);
from sys import argv
import subprocess
script = argv
name = str(script[0])
for i in range(0,2):
directoryName = 'copy'+str(i)
subprocess.call(['mkdir', directoryName], shell=True)
subprocess.call(['cp', name, directoryName], shell=True)