Use this tag for question about SHFileOperation function
Questions tagged [shfileoperation]
35 questions
0
votes
1 answer
Ability of SHFileOperation
Does SHFileOperation support to move and rename files at the same time?
I'v got a set of files :
c:\
f1.bmp f2.bmp f3.bmp f4.bmp
I want to move each to new folder, and rename them:
d:\
b1.bmp b2.bmp b3.bmp b4.bmp
Can I use SHFileOperation? and…

user25749
- 4,825
- 14
- 61
- 83
0
votes
1 answer
System call level is not correct
I'm using SHFileOperation to delete files to Recycle bin. But sometimes I received a "System call level is not correct" error. It not happens every time or every file. Just some random files at random time. Anyone knows the reason? Thanks.
Update:…

trudger
- 917
- 2
- 12
- 20
0
votes
1 answer
SHFileOperation Delete when pFrom = ""
I have a question involving SHFileOperation:
SHFILEOPSTRUCT sf2;
memset(&sf2,0,sizeof(sf2));
sf2.hwnd = NULL;
sf2.wFunc = FO_DELETE;
sf2.fFlags = FOF_NOCONFIRMATION;
sf2.pFrom = pathSubDir; // where pathSubDir = ""
//2.…

JHowzer
- 3,684
- 4
- 30
- 36
-1
votes
2 answers
Recursively delete files and skip files that are in use?
I'm using Windows API to recursively delete many files and folders. I'm using it without a UI and suppressing errors. The problem is, it completely fails if one of those files is in use. I expect that possibility, and want this to continue anyway,…

Jerry Dodge
- 26,858
- 31
- 155
- 327
-2
votes
1 answer
When a python script is executed inside a python script, I do not get the complete output
When a python script is executed inside a python script, I do not get the complete output. In my case:
os.system('python -u capture.py > capture.log &')
where capture.py will capture the packets and feeds this to capture.log.
Capture.py will keep…

user7762553
- 1
- 1