directory

How do I access various Outlook folders through Python using win32.client

亡梦爱人 提交于 2019-12-23 05:09:17
问题 I intend on parsing my entire email inbox for those emails with the subject 'production' in order to extract the email into a .txt file for further parsing. I have successfully got Python to locate every email in my inbox as I have created counts which show the number of emails and the related emails (total emails and emails with subject 'production'). I want to know if through Python, I can move emails between Outlook folders, so from Inbox to a folder named 'production' within Outlook. My

PHP list directory and delete or download files

醉酒当歌 提交于 2019-12-23 05:08:26
问题 I have a directory on my server, I want to list all the files in it with checkboxes and either delete or download them after choosing. So far I can list and delete fine using this form, ticking checkboxes and pressing the button. But I also sometimes need to download files to my local machine. Either by ticking the checkbox or right-clicking the file name and downloading with 'save file as' in Chrome browser. But I can't get it working. How can I download these files? My page is called

Absolute path of executable start directory

房东的猫 提交于 2019-12-23 04:43:31
问题 I am trying to figure out how to grab the start directory for my program. I am using C and have access to GLib. On the Linux side it is easy, g_get_current_directory as soon as the program is launched, and store this value for later use. I tried using the same method on windows but g_get_current_directory returns whatever %APPDATA% resolves to. Any ideas on how I can grab the starting directory using C? Thanks, 回答1: Not in standard C (unless there's something new in C99). C itself doesn't

I want to create a folder in multiple folders available

て烟熏妆下的殇ゞ 提交于 2019-12-23 04:32:24
问题 I want to create a folder in multiple folders available (by VBScript) Example: I have multiple folders: abc, xyz, ijk ... etc. I want to create a folder as "ABC" in all folders abc, xyz, tyu, ijk..etc Then move all files "jpg" in each folder abc, xyz, tyu, ijk .. into the folder "ABC" of each folder just created Check each folder and see if the folder "ABC" or not, empty or not strFolder = "/" '<== This place how to automatically create a folder "ABC" ' in the directory available SET objFSO =

List of all files inside the folder and its subfolders in Windows

流过昼夜 提交于 2019-12-23 04:24:08
问题 I want to list all the files that run under Task Scheduler by accessing all the files in the "C:\windows\system32\Tasks" Directory. The program should recursively keep opening subfolders in the directory and list all the files. I currently use Windows OS . I tried using the COM library but it doesn't display the tasks in the subfolders. I have 60 tasks but it displays only 12. So, I'm trying to iterate through the Tasks folder instead. #include <stdio.h> #include <dirent.h> int main(void) {

WinSCP .NET assembly - How to set folder permissions after creating directory?

南楼画角 提交于 2019-12-23 04:01:08
问题 I'm building a web site and I want that when a user registers, to create a directory on the SFTP server and put in that directory a new file I'm using WinSCP .NET assembly, and writing C#. I noticed that you are able to set permissions only in the method: Session.PutFiles and not in the method: Session.CreateDirectory Snd so after I create the directory and put the file in it, I cannot access the file because I don't have permissions - I'm accessing the file with the full URL How can I access

Parsing all XML files in directory and all subdirectories

白昼怎懂夜的黑 提交于 2019-12-23 03:36:40
问题 I am new to Python, yet I have some experience with Delphi. I am trying to make a script that would be able to search all xml files in directory (including all subdirectories in that directory), then parse those XML and save some data (numbers) from there to a simple txt file. After that I work through that txt file to create another txt file with only unique set of numbers from previously created txt file. I created this script: import os from xml.dom import minidom #for testing purposes

VBA Loop through folder and subfolders to find specific sheet then Copy and Paste certain data

半世苍凉 提交于 2019-12-23 03:12:14
问题 I hope you can help. I have made an attempt to code this myself (see code below) but failed so I am reaching out to the community for assistance. What I need my code to do is allow a user to click on a command button, then the user selects a folder. Once this folder is selected. I need the code to look or loop through this folder and all the subfolders in this folder and find sheets with a name Like " CustomerExp " then copy the the data in sheets name Like " CustomerExp " from the second row

List folders and files in a UNC root folder

让人想犯罪 __ 提交于 2019-12-23 02:53:22
问题 I am trying to get folders and files from the root of a UNC path name. I am using Get-ChildItem . I can get results from a subfolder via the UNC path, but not the root folder. If run the command Get-ChildItem \\sf1\user1 from the command line, results are returned. Directory: \\sf1\user1 Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 11/14/2013 3:40 PM 1.ISGROUP When I try to execute Get-ChildItem \\sf1 from the command line I get errors. Get-ChildItem : Cannot find path

rmdir() bug with particular filename? Permission denied

百般思念 提交于 2019-12-23 02:52:29
问题 First, let's get these out of the way: There are no open handles on the directory. There are no files in the directory. chmod ing the permissions to 0777 does not prevent the error. the directory name is correct. Now then, here's my problem. rmdir() is throwing this error when trying to delete the directory: rmdir(098f6bcd4621d373cade4e832627b4f6) [function.rmdir]: Permission denied in path\to\administrate.php on line 124 098f6bcd4621d373cade4e832627b4f6 is the name of the directory. Here is