Skip to content

Instantly share code, notes, and snippets.

@juntalis
Created December 16, 2012 04:25
Show Gist options
  • Select an option

  • Save juntalis/4303310 to your computer and use it in GitHub Desktop.

Select an option

Save juntalis/4303310 to your computer and use it in GitHub Desktop.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Development\py.workspace\python-remote>rpy.cmd
(Interactive Console in Command Prompt)
>>> cmd.jump_table.name
u'DIR'
>>> newname = create_unicode_buffer('SOME_WEIRD_COMMAND')
>>> cmd.jump_table.name = cast(newname, c_wchar_p)
>>> ^C
C:\Development\py.workspace\python-remote>dir
'dir' is not recognized as an internal or external command,
operable program or batch file.
C:\Development\py.workspace\python-remote>some_weird_command
Volume in drive C is Windows 7 x64
Volume Serial Number is 2ECB-95E3
Directory of C:\Development\py.workspace\python-remote
12/15/2012 08:16 PM <DIR> .
12/15/2012 08:16 PM <DIR> ..
11/10/2012 07:39 PM 99 .gitignore
12/15/2012 08:11 PM 4,150 comspec.py
12/15/2012 08:16 PM 5,852 comspec.pyc
10/26/2012 10:35 PM <DIR> data
11/10/2012 12:54 PM <DIR> extern
11/10/2012 07:39 PM 1,540 funcsigs.c
11/10/2012 07:40 PM 1,390 getmodulesize.c
10/24/2012 11:05 PM <DIR> include
11/29/2012 02:45 PM 2,222 pyctypes.py
11/10/2012 12:36 PM 258,842 pytab.py
11/29/2012 02:46 PM 17,616 rdll.py
11/10/2012 12:57 PM 2,993 README.md
12/15/2012 08:15 PM 504 rpy.cmd
12/15/2012 08:16 PM 2,083 rpython.py
11/10/2012 08:11 PM 1,076 searchmemory.c
08/09/2012 05:55 PM <DIR> src
10/26/2012 10:34 PM <DIR> util
12/15/2012 07:38 PM 13,994 _kernel32.py
12/15/2012 07:49 PM 12,114 _kernel32.pyc
14 File(s) 324,475 bytes
7 Dir(s) 445,443,272,704 bytes free
C:\Development\py.workspace\python-remote>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment