Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HRESULT sortpkg(WCHAR* szInput, WCHAR* szOutput)
- {
- HRESULT hr = S_OK;
- HANDLE bob = // this is to get handle to files one by one...but i dont know what to put here?????
- switch (bob.filename)
- case dpi_* //first case to look for while reading directory name string
- {
- if (test.substr(0,4) == L"dpi_") // if the first four char in directory name string are "dpi_"
- wstring dpi = test.substr(4,test.size()); // new string dpi is equal to the next 4 chars after dpi_
- PathAppend(szOutput, dpi) // add whatever dpi is to output path...i think i did this right?
- recursivemove (szInput, szOutput) // this creates the new directory for dpixxxx and moves the pkgs that match to that directory
- }
- wait();
- return hr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement