Is it possible to alter the hidden attribute of a folder and if so how? Thanks in advance.
B BobbyBob Apr 7, 2010 #1 Is it possible to alter the hidden attribute of a folder and if so how? Thanks in advance.
S Stefan Hoffmann Apr 7, 2010 #2 hi Bobby, Is it possible to alter the hidden attribute of a folder and if so how? Click to expand... Use the FileSystemObject to get a folder and change its attributes: http://msdn.microsoft.com/en-us/library/hww8txat(VS.85).aspx http://msdn.microsoft.com/en-us/library/f1xtf7ta(VS.85).aspx http://msdn.microsoft.com/en-us/library/5tx15443(VS.85).aspx Either use late binding Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject") or early binding (set a reference to the MS Scripting runtime) Dim fso As Scripting.FileSystemObject Set fso = new Scripting.FileSystemObject mfG --> stefan <--
hi Bobby, Is it possible to alter the hidden attribute of a folder and if so how? Click to expand... Use the FileSystemObject to get a folder and change its attributes: http://msdn.microsoft.com/en-us/library/hww8txat(VS.85).aspx http://msdn.microsoft.com/en-us/library/f1xtf7ta(VS.85).aspx http://msdn.microsoft.com/en-us/library/5tx15443(VS.85).aspx Either use late binding Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject") or early binding (set a reference to the MS Scripting runtime) Dim fso As Scripting.FileSystemObject Set fso = new Scripting.FileSystemObject mfG --> stefan <--
S Stuart McCall Apr 7, 2010 #3 BobbyBob said: Is it possible to alter the hidden attribute of a folder and if so how? Thanks in advance. Click to expand... To hide the c:\temp folder: SetAttr "c:\temp", vbHidden and to unhide it: SetAttr "c:\temp", vbNormal
BobbyBob said: Is it possible to alter the hidden attribute of a folder and if so how? Thanks in advance. Click to expand... To hide the c:\temp folder: SetAttr "c:\temp", vbHidden and to unhide it: SetAttr "c:\temp", vbNormal
B BobbyBob Apr 8, 2010 #4 Thank you Stefan Hoffmann said: hi Bobby, Use the FileSystemObject to get a folder and change its attributes: http://msdn.microsoft.com/en-us/library/hww8txat(VS.85).aspx http://msdn.microsoft.com/en-us/library/f1xtf7ta(VS.85).aspx http://msdn.microsoft.com/en-us/library/5tx15443(VS.85).aspx Either use late binding Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject") or early binding (set a reference to the MS Scripting runtime) Dim fso As Scripting.FileSystemObject Set fso = new Scripting.FileSystemObject mfG --> stefan <-- . Click to expand...
Thank you Stefan Hoffmann said: hi Bobby, Use the FileSystemObject to get a folder and change its attributes: http://msdn.microsoft.com/en-us/library/hww8txat(VS.85).aspx http://msdn.microsoft.com/en-us/library/f1xtf7ta(VS.85).aspx http://msdn.microsoft.com/en-us/library/5tx15443(VS.85).aspx Either use late binding Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject") or early binding (set a reference to the MS Scripting runtime) Dim fso As Scripting.FileSystemObject Set fso = new Scripting.FileSystemObject mfG --> stefan <-- . Click to expand...
B BobbyBob Apr 8, 2010 #5 Thank you. Stuart McCall said: To hide the c:\temp folder: SetAttr "c:\temp", vbHidden and to unhide it: SetAttr "c:\temp", vbNormal . Click to expand...
Thank you. Stuart McCall said: To hide the c:\temp folder: SetAttr "c:\temp", vbHidden and to unhide it: SetAttr "c:\temp", vbNormal . Click to expand...