Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
_tasleem3-Dec-06 20:29
_tasleem3-Dec-06 20:29 
GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
jhwurmbach4-Dec-06 4:37
jhwurmbach4-Dec-06 4:37 
GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
_tasleem4-Dec-06 18:13
_tasleem4-Dec-06 18:13 
GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
ThatsAlok4-Dec-06 20:22
ThatsAlok4-Dec-06 20:22 
GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
_tasleem4-Dec-06 22:31
_tasleem4-Dec-06 22:31 
GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
ThatsAlok4-Dec-06 22:38
ThatsAlok4-Dec-06 22:38 
GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
_tasleem6-Dec-06 20:39
_tasleem6-Dec-06 20:39 
GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
ThatsAlok6-Dec-06 21:27
ThatsAlok6-Dec-06 21:27 
_tasleem wrote:
Dim FileObject
Dim GFolder
Set FileObject = CreateObject("Scripting.FileSystemObject")
Set GFolder = FileObject.GetFolder(txtPath.Text)
GFolder.Attributes = -1


    CoInitialize(NULL);
    Scripting::IFileSystemPtr fileSysPtr;
    Scripting::IDrivePtr    drvPtr=NULL;    
    Scripting::IFolderPtr    folderPtr=NULL;
    CLSID fileSys;
    HRESULT hr;

    CLSIDFromProgID(L"Scripting.FileSystemObject",&fileSys);
    fileSysPtr.CreateInstance(fileSys);
    _bstr_t bstFolder(L"C:\\alok123");
    hr=fileSysPtr->GetFolder(bstFolder,&folderPtr);
    folderPtr->put_Attributes(Scripting::Hidden);


"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you

GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
_tasleem6-Dec-06 23:41
_tasleem6-Dec-06 23:41 
AnswerRe: how to use Scripting.filesystemobject in VC++ [modified] Pin
BadJerry4-Dec-06 2:06
BadJerry4-Dec-06 2:06 
GeneralRe: how to use Scripting.filesystemobject in VC++ Pin
ThatsAlok4-Dec-06 21:52
ThatsAlok4-Dec-06 21:52 
Questionsimple question Pin
cyn83-Dec-06 19:17
cyn83-Dec-06 19:17 
AnswerRe: simple question Pin
ThatsAlok3-Dec-06 19:37
ThatsAlok3-Dec-06 19:37 
GeneralRe: simple question Pin
cyn83-Dec-06 21:30
cyn83-Dec-06 21:30 
AnswerRe: simple question Pin
flyalone3-Dec-06 20:52
flyalone3-Dec-06 20:52 
GeneralRe: simple question Pin
cyn83-Dec-06 21:31
cyn83-Dec-06 21:31 
AnswerRe: simple question Pin
Christian Graus3-Dec-06 22:52
protectorChristian Graus3-Dec-06 22:52 
AnswerRe: simple question Pin
David Crow4-Dec-06 4:59
David Crow4-Dec-06 4:59 
QuestionProviding a boundary to a RoundRect Pin
Ratish Philip3-Dec-06 18:13
Ratish Philip3-Dec-06 18:13 
AnswerRe: Providing a boundary to a RoundRect Pin
Naveen3-Dec-06 19:10
Naveen3-Dec-06 19:10 
GeneralRe: Providing a boundary to a RoundRect Pin
Ratish Philip3-Dec-06 19:26
Ratish Philip3-Dec-06 19:26 
GeneralRe: Providing a boundary to a RoundRect Pin
Naveen3-Dec-06 19:31
Naveen3-Dec-06 19:31 
GeneralRe: Providing a boundary to a RoundRect Pin
Ratish Philip3-Dec-06 19:50
Ratish Philip3-Dec-06 19:50 
GeneralRe: Providing a boundary to a RoundRect Pin
Naveen3-Dec-06 19:54
Naveen3-Dec-06 19:54 
GeneralRe: Providing a boundary to a RoundRect Pin
Mark Salsbery3-Dec-06 19:33
Mark Salsbery3-Dec-06 19:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.