codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
def setClipboardText(text): file = open("D:\exchange.sh", 'w') command = 'echo "REPLACEME" | xclip -selection clipboard' command=command.replace("REPLACEME", text) file.write(command) file.close() command = '"/home/user/exchange.sh"' AppVmRun = App.open(r'"C:\Program Files (x86)\VMware\VMware VIX\vmrun.exe" -T ws -gu user -gp 123456 CopyFileFromHostToGuest "D:\VMS\CentOS 64-bit full2\CentOS 64-bit full2.vmx" ' + "D:\exchange.sh " + "/home/user/exchange.sh") AppVmRun1 = App.open(r'"C:\Program Files (x86)\VMware\VMware VIX\vmrun.exe" -T ws -gu user -gp 123456 runProgramInGuest "D:\VMS\CentOS 64-bit full2\CentOS 64-bit full2.vmx" ' + " -interactive " + command)
Private
[
?
]
Run code
Submit