Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(104)  |  Call(104)  |  Derive(0)  |  Import(0)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/RegRestoreKey.py   main(Download)
 
temp_dir=win32api.GetTempPath()
fname=win32api.GetTempFileName(temp_dir,'rsk')[0]
print fname
## file can't exist

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/Demos/RegRestoreKey.py   TrustRouter(Download)
 
temp_dir=win32api.GetTempPath()
fname=win32api.GetTempFileName(temp_dir,'rsk')[0]
print(fname)
## file can't exist

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32/Demos/RegRestoreKey.py   SublimeSpeech(Download)
 
temp_dir=win32api.GetTempPath()
fname=win32api.GetTempFileName(temp_dir,'rsk')[0]
print fname
## file can't exist

src/s/u/SublimeSpeech-HEAD/lib/pywin32bit/win32/Demos/RegRestoreKey.py   SublimeSpeech(Download)
 
temp_dir=win32api.GetTempPath()
fname=win32api.GetTempFileName(temp_dir,'rsk')[0]
print fname
## file can't exist

src/e/i/einstein-HEAD/Python25Einstein/Lib/site-packages/win32/Demos/RegRestoreKey.py   einstein(Download)
 
temp_dir=win32api.GetTempPath()
fname=win32api.GetTempFileName(temp_dir,'rsk')[0]
print fname
## file can't exist

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/security/set_file_audit.py   main(Download)
## create a dir and set security so Everyone has read permissions, and all files and subdirs inherit its ACLs
temp_dir=win32api.GetTempPath()
dir_name=win32api.GetTempFileName(temp_dir,'sfa')[0]
os.remove(dir_name)
os.mkdir(dir_name)
 
## Create a file in the dir and add some specific permissions to it
fname=win32api.GetTempFileName(dir_name,'sfa')[0]
print fname
file_sd=win32security.GetNamedSecurityInfo(fname, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION|SACL_SECURITY_INFORMATION)

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/site-packages/win32/Demos/security/set_file_audit.py   TrustRouter(Download)
## create a dir and set security so Everyone has read permissions, and all files and subdirs inherit its ACLs
temp_dir=win32api.GetTempPath()
dir_name=win32api.GetTempFileName(temp_dir,'sfa')[0]
os.remove(dir_name)
os.mkdir(dir_name)
 
## Create a file in the dir and add some specific permissions to it
fname=win32api.GetTempFileName(dir_name,'sfa')[0]
print(fname)
file_sd=win32security.GetNamedSecurityInfo(fname, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION|SACL_SECURITY_INFORMATION)

src/s/u/SublimeSpeech-HEAD/lib/pywin64bit/win32/Demos/security/set_file_audit.py   SublimeSpeech(Download)
## create a dir and set security so Everyone has read permissions, and all files and subdirs inherit its ACLs
temp_dir=win32api.GetTempPath()
dir_name=win32api.GetTempFileName(temp_dir,'sfa')[0]
os.remove(dir_name)
os.mkdir(dir_name)
 
## Create a file in the dir and add some specific permissions to it
fname=win32api.GetTempFileName(dir_name,'sfa')[0]
print fname
file_sd=win32security.GetNamedSecurityInfo(fname, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION|SACL_SECURITY_INFORMATION)

src/s/u/SublimeSpeech-HEAD/lib/pywin32bit/win32/Demos/security/set_file_audit.py   SublimeSpeech(Download)
## create a dir and set security so Everyone has read permissions, and all files and subdirs inherit its ACLs
temp_dir=win32api.GetTempPath()
dir_name=win32api.GetTempFileName(temp_dir,'sfa')[0]
os.remove(dir_name)
os.mkdir(dir_name)
 
## Create a file in the dir and add some specific permissions to it
fname=win32api.GetTempFileName(dir_name,'sfa')[0]
print fname
file_sd=win32security.GetNamedSecurityInfo(fname, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION|SACL_SECURITY_INFORMATION)

src/m/a/main-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/site-packages/win32/Demos/OpenEncryptedFileRaw.py   main(Download)
 
tmp_dir=win32api.GetTempPath()
dst_dir=win32api.GetTempFileName(tmp_dir,'oef')[0]
os.remove(dst_dir)
os.mkdir(dst_dir)
print 'Destination dir:', dst_dir
 
## create an encrypted file
fname=win32api.GetTempFileName(dst_dir,'ref')[0]
 
## backup raw data of encrypted file
bkup_fname=win32api.GetTempFileName(dst_dir,'bef')[0]
print 'backup file:', bkup_fname
f=open(bkup_fname,'wb')
 
## restore data from backup to new encrypted file
dst_fname=win32api.GetTempFileName(dst_dir,'wef')[0]
print 'restored file:', dst_fname
f=open(bkup_fname,'rb')

  1 | 2 | 3 | 4 | 5 | 6 | 7  Next