Advertisement
Guest User

Untitled

a guest
May 26th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.73 KB | None | 0 0
  1. HRESULT sortpkg(WCHAR* szInput, WCHAR* szOutput)
  2. {
  3.     HRESULT hr = S_OK;
  4.     HANDLE bob = // this is to get handle to files one by one...but i dont know what to put here?????
  5.     switch (bob.filename)
  6.     case dpi_* //first case to look for while reading directory name string
  7.         {
  8.             if (test.substr(0,4) == L"dpi_") // if the first four char in directory name string are "dpi_"
  9.             wstring dpi = test.substr(4,test.size()); // new string dpi is equal to the next 4 chars after dpi_
  10.             PathAppend(szOutput, dpi) // add whatever dpi is to output path...i think i did this right?
  11.             recursivemove (szInput, szOutput) // this creates the new directory for dpixxxx and moves the pkgs that match to that directory
  12.         }
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.     wait();
  20.     return hr;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement