473,748 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to delete folder

Hi,

I have the following code to select a folder and then delete it. I keep
getting a Path/File error on the line that deletes the actual folder. The
line before that line deletes the files in the folder but I get the error
message when the procedure attempts to delete the folder selected in the
BrowseforFolder byPath function.

How can I get it to delete the folder that the user has selected in the
Browse for Folder dialog?
Thanks,
Anthony
*************** ********* BEGIN CODE SNIPPET *************** ***************

ArchiveFolder = BrowseForFolder ByPath(ProgramP ath)

'check if user has clicked the Cancel button.
If ArchiveFolder = vbNullString Then

Exit Sub

End If

'check if the selected folder is under the program folder.
If Left(ArchiveFol der, Len(ArchiveFold er) - 5) <ProgramPath Or
(Right(ArchiveF older, 4)) Like "*[!0-9]*" Then

MsgBox "That is an invalid Archive folder." & Chr$(13) & Chr$(13)
& _
"Archives are located in the " & ProgramPath & " folder." & Chr$
(13) & Chr$(13) & _
"Please select an archive in the " & ProgramPath & " folder.",
vbOKOnly + vbInformation, "Invalid Archive Folder."

Exit Sub

End If

strDeleteQuesti on = MsgBox("Do you really want to delete the " &
ArchiveFolder & " archive?", vbYesNo + vbQuestion, "Delete Archive.")

If strDeleteQuesti on = vbYes Then

'delete all files in the selected archive folder.
Kill ArchiveFolder & "\*.*" <----------------
- this line works.

Delete_Destinat ion = ArchiveFolder & "\" <------ this
line fails.

RmDir Delete_Destinat ion

MsgBox "The Archive has been successfully deleted.", vbOKOnly
+ VbInformation, "Success!"

End If

*************** ************* END CODE SNIPPET
*************** *************** **************

This is the function I'm using for the Browseforfolder byPath:
Public Function BrowseForFolder ByPath(sSelPath As String) As String

Dim BI As BROWSEINFO
Dim pidl As Long
Dim lpSelPath As Long
Dim spath As String * MAX_PATH

With BI
.hOwner = Me.hwnd
.pidlRoot = 0
If RestoreArchive = True Then
.lpszTitle = "Archives are located under the application's folder." &
Chr$(13) & "What Archive do you want to Restore?"
Else
.lpszTitle = "Archives are located under the application's folder." &
Chr$(13) & "What Archive do you want to Delete?"
End If

.lpfn = FARPROCl(Addres sOf BrowseCallbackP rocStr)

lpSelPath = LocalAlloc(LPTR , Len(sSelPath) + 1)
CopyMemory ByVal lpSelPath, ByVal sSelPath, Len(sSelPath) + 1
.lParam = lpSelPath

End With

pidl = SHBrowseForFold er(BI)

If pidl Then

If SHGetPathFromID List(pidl, spath) Then
BrowseForFolder ByPath = Left$(spath, InStr(spath, vbNullChar) - 1)
End If

Call CoTaskMemFree(p idl)

End If

Call LocalFree(lpSel Path)

End Function

Public Function IsWinNT() As Boolean

#If Win32 Then

Dim OSV As OSVERSIONINFO

OSV.OSVSize = Len(OSV)

'API returns 1 if a successful call
If GetVersionEx(OS V) = 1 Then

'PlatformId contains a value representing
'the OS, so if it's VER_PLATFORM_WI N32_NT,
'return true
IsWinNT = OSV.PlatformID = VER_PLATFORM_WI N32_NT
End If

#End If

End Function

--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200705/1

May 21 '07 #1
24 7558
Just realised that I highlighted the incorrect line. The line thar is failing
is:

Â*RmDir Delete_Destinat ion

Is it failing because the folder to be deleted is still "locked" by the
browseforfolder bypath function?


biganthony wrote:
>Hi,

I have the following code to select a folder and then delete it. I keep
getting a Path/File error on the line that deletes the actual folder. The
line before that line deletes the files in the folder but I get the error
message when the procedure attempts to delete the folder selected in the
BrowseforFolde rbyPath function.

How can I get it to delete the folder that the user has selected in the
Browse for Folder dialog?

Thanks,
Anthony

************** ********** BEGIN CODE SNIPPET *************** ***************

ArchiveFolder = BrowseForFolder ByPath(ProgramP ath)

'check if user has clicked the Cancel button.
If ArchiveFolder = vbNullString Then

Exit Sub

End If

'check if the selected folder is under the program folder.
If Left(ArchiveFol der, Len(ArchiveFold er) - 5) <ProgramPath Or
(Right(Archive Folder, 4)) Like "*[!0-9]*" Then

MsgBox "That is an invalid Archive folder." & Chr$(13) & Chr$(13)
& _
"Archives are located in the " & ProgramPath & " folder." & Chr$
(13) & Chr$(13) & _
"Please select an archive in the " & ProgramPath & " folder.",
vbOKOnly + vbInformation, "Invalid Archive Folder."

Exit Sub

End If

strDeleteQuesti on = MsgBox("Do you really want to delete the " &
ArchiveFolde r & " archive?", vbYesNo + vbQuestion, "Delete Archive.")

If strDeleteQuesti on = vbYes Then

'delete all files in the selected archive folder.

Kill ArchiveFolder & "\*.*" <----------------
- this line works.

Delete_Destinat ion = ArchiveFolder & "\" <------ this
line fails.

RmDir Delete_Destinat ion

MsgBox "The Archive has been successfully deleted.", vbOKOnly
+ VbInformation, "Success!"

End If

************** ************** END CODE SNIPPET
************** *************** ***************

This is the function I'm using for the Browseforfolder byPath:

Public Function BrowseForFolder ByPath(sSelPath As String) As String

Dim BI As BROWSEINFO
Dim pidl As Long
Dim lpSelPath As Long
Dim spath As String * MAX_PATH

With BI
.hOwner = Me.hwnd
.pidlRoot = 0
If RestoreArchive = True Then
.lpszTitle = "Archives are located under the application's folder." &
Chr$(13) & "What Archive do you want to Restore?"
Else
.lpszTitle = "Archives are located under the application's folder." &
Chr$(13) & "What Archive do you want to Delete?"
End If

.lpfn = FARPROCl(Addres sOf BrowseCallbackP rocStr)

lpSelPath = LocalAlloc(LPTR , Len(sSelPath) + 1)
CopyMemory ByVal lpSelPath, ByVal sSelPath, Len(sSelPath) + 1
.lParam = lpSelPath

End With

pidl = SHBrowseForFold er(BI)

If pidl Then

If SHGetPathFromID List(pidl, spath) Then
BrowseForFolder ByPath = Left$(spath, InStr(spath, vbNullChar) - 1)
End If

Call CoTaskMemFree(p idl)

End If

Call LocalFree(lpSel Path)

End Function

Public Function IsWinNT() As Boolean

#If Win32 Then

Dim OSV As OSVERSIONINFO

OSV.OSVSize = Len(OSV)

'API returns 1 if a successful call
If GetVersionEx(OS V) = 1 Then

'PlatformId contains a value representing
'the OS, so if it's VER_PLATFORM_WI N32_NT,
'return true
IsWinNT = OSV.PlatformID = VER_PLATFORM_WI N32_NT
End If

#End If

End Function
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200705/1

May 21 '07 #2
biganthony via AccessMonster.c om wrote:
Just realised that I highlighted the incorrect line. The line thar is failing
is:

RmDir Delete_Destinat ion

Is it failing because the folder to be deleted is still "locked" by the
browseforfolder bypath function?
Doubtful.

Do you have rights to delete the folder?

Prior to deleting, do something like
msgbox Delete_Destinat ion
Does that look correct?

Do you get an error message? If so, what is the error number and error
message?

>

biganthony wrote:
>>Hi,

I have the following code to select a folder and then delete it. I keep
getting a Path/File error on the line that deletes the actual folder. The
line before that line deletes the files in the folder but I get the error
message when the procedure attempts to delete the folder selected in the
BrowseforFold erbyPath function.

How can I get it to delete the folder that the user has selected in the
Browse for Folder dialog?

Thanks,
Anthony

************* *********** BEGIN CODE SNIPPET *************** ***************

ArchiveFolder = BrowseForFolder ByPath(ProgramP ath)

'check if user has clicked the Cancel button.
If ArchiveFolder = vbNullString Then

Exit Sub

End If

'check if the selected folder is under the program folder.
If Left(ArchiveFol der, Len(ArchiveFold er) - 5) <ProgramPath Or
(Right(Archiv eFolder, 4)) Like "*[!0-9]*" Then

MsgBox "That is an invalid Archive folder." & Chr$(13) & Chr$(13)
& _
"Archives are located in the " & ProgramPath & " folder." & Chr$
(13) & Chr$(13) & _
"Please select an archive in the " & ProgramPath & " folder.",
vbOKOnly + vbInformation, "Invalid Archive Folder."

Exit Sub

End If

strDeleteQuesti on = MsgBox("Do you really want to delete the " &
ArchiveFold er & " archive?", vbYesNo + vbQuestion, "Delete Archive.")

If strDeleteQuesti on = vbYes Then

'delete all files in the selected archive folder.

Kill ArchiveFolder & "\*.*" <----------------
- this line works.

Delete_Destinat ion = ArchiveFolder & "\" <------ this
line fails.

RmDir Delete_Destinat ion

MsgBox "The Archive has been successfully deleted.", vbOKOnly
+ VbInformation, "Success!"

End If

************* *************** END CODE SNIPPET
************* *************** *************** *

This is the function I'm using for the Browseforfolder byPath:

Public Function BrowseForFolder ByPath(sSelPath As String) As String

Dim BI As BROWSEINFO
Dim pidl As Long
Dim lpSelPath As Long
Dim spath As String * MAX_PATH

With BI
.hOwner = Me.hwnd
.pidlRoot = 0
If RestoreArchive = True Then
.lpszTitle = "Archives are located under the application's folder." &
Chr$(13) & "What Archive do you want to Restore?"
Else
.lpszTitle = "Archives are located under the application's folder." &
Chr$(13) & "What Archive do you want to Delete?"
End If

.lpfn = FARPROCl(Addres sOf BrowseCallbackP rocStr)

lpSelPath = LocalAlloc(LPTR , Len(sSelPath) + 1)
CopyMemory ByVal lpSelPath, ByVal sSelPath, Len(sSelPath) + 1
.lParam = lpSelPath

End With

pidl = SHBrowseForFold er(BI)

If pidl Then

If SHGetPathFromID List(pidl, spath) Then
BrowseForFolder ByPath = Left$(spath, InStr(spath, vbNullChar) - 1)
End If

Call CoTaskMemFree(p idl)

End If

Call LocalFree(lpSel Path)

End Function

Public Function IsWinNT() As Boolean

#If Win32 Then

Dim OSV As OSVERSIONINFO

OSV.OSVSize = Len(OSV)

'API returns 1 if a successful call
If GetVersionEx(OS V) = 1 Then

'PlatformId contains a value representing
'the OS, so if it's VER_PLATFORM_WI N32_NT,
'return true
IsWinNT = OSV.PlatformID = VER_PLATFORM_WI N32_NT
End If

#End If

End Function

May 21 '07 #3
Salad,

Thanks for replying.

First, I have full rights to the folder - it is a local folder.
Second, the error message is: "Path/File Access Error." and the error number
is 75.
Thirdly, I did this: msgbox Delete_Destinat ion and the folder appears
correctly.

The strange thing is the code works on my desktop at home. That computer is
running Win XP x64 and Office 2003 Professional. When I run it on my laptop I
get the error. The laptop is running Win XP Pro and Office 2003 Professional.
Besides that, I cannot work out any other differences to help explain why it
won't work on my laptop.

Thanks again,
Anthony


salad wrote:
>Just realised that I highlighted the incorrect line. The line thar is failing
is:
[quoted text clipped - 3 lines]
>Is it failing because the folder to be deleted is still "locked" by the
browseforfolde rbypath function?

Doubtful.

Do you have rights to delete the folder?

Prior to deleting, do something like
msgbox Delete_Destinat ion
Does that look correct?

Do you get an error message? If so, what is the error number and error
message?
>>>Hi,
[quoted text clipped - 123 lines]
>>>
End Function
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200705/1

May 22 '07 #4
biganthony via AccessMonster.c om wrote:
Salad,

Thanks for replying.

First, I have full rights to the folder - it is a local folder.
Second, the error message is: "Path/File Access Error." and the error number
is 75.
Thirdly, I did this: msgbox Delete_Destinat ion and the folder appears
correctly.

The strange thing is the code works on my desktop at home. That computer is
running Win XP x64 and Office 2003 Professional. When I run it on my laptop I
get the error. The laptop is running Win XP Pro and Office 2003 Professional.
Besides that, I cannot work out any other differences to help explain why it
won't work on my laptop.

Thanks again,
Anthony


salad wrote:
>>>Just realised that I highlighted the incorrect line. The line thar is failing
is:

[quoted text clipped - 3 lines]
>>>Is it failing because the folder to be deleted is still "locked" by the
browseforfol derbypath function?

Doubtful.

Do you have rights to delete the folder?

Prior to deleting, do something like
msgbox Delete_Destinat ion
Does that look correct?

Do you get an error message? If so, what is the error number and error
message?

>>>>Hi,

[quoted text clipped - 123 lines]
>>>>End Function

This is what I have from A97 help on error 75. I doubt it's changed
much. Are you sure all subfolders and files have been removed first?
During a file-access or disk-access operation, for example, Open, MkDir,
ChDir, or RmDir, the operating system couldn't make a connection between
the path and the file name. This error has the following causes and
solutions:

· The file specification isn't correctly formatted.

A file name can contain a fully qualified (absolute) or relative path. A
fully qualified path starts with the drive name (if the path is on
another drive) and lists the explicit path from the root to the file.
Any path that isn't fully qualified is relative to the current drive and
directory.

· You attempted to save a file that would replace an existing read-only
file.

Change the read-only attribute of the target file or save the file with
a different file name.

· You attempted to open a read-only file in sequential Output or Append
mode.

Open the file in Input mode or change the read-only attribute of the file.

For additional information, select the item in question and press F1.
May 22 '07 #5
Help - Kill - See Also.

RmDir Statement

Syntax

RmDir path

The required path argument is a string expression that identifies the
directory or folder to be removed. The path may include the drive. If no
drive is specified, RmDir removes the directory or folder on the current
drive.

Remarks

An error occurs if you try to use RmDir on a directory or folder containing
files. Use the Kill statement to delete all files before attempting to
remove a directory or folder.

This example uses the RmDir statement to remove an existing directory or
folder.

' Assume that MYDIR is an empty directory or folder.
RmDir "MYDIR" ' Remove MYDIR.

Cheers,
Alan

"biganthony via AccessMonster.c om" <u31673@uwewrot e in
news:727d4bfe8f 481@uwe:
Hi,

I have the following code to select a folder and then delete it. I
keep getting a Path/File error on the line that deletes the actual
folder. The line before that line deletes the files in the folder but
I get the error message when the procedure attempts to delete the
folder selected in the BrowseforFolder byPath function.

How can I get it to delete the folder that the user has selected in
the Browse for Folder dialog?
Thanks,
Anthony
May 22 '07 #6
Alan,

All the files are deleted in the folder before attempting to delete the
folder.

The code I wrote above works on one computer but not the other. So there must
be something unique about the computer it does not work on. I'm at a loss to
determine why it doesn't work.

thanks
Anthony
Alan Carpenter wrote:
>Help - Kill - See Also.

RmDir Statement

Syntax

RmDir path

The required path argument is a string expression that identifies the
directory or folder to be removed. The path may include the drive. If no
drive is specified, RmDir removes the directory or folder on the current
drive.

Remarks

An error occurs if you try to use RmDir on a directory or folder containing
files. Use the Kill statement to delete all files before attempting to
remove a directory or folder.

This example uses the RmDir statement to remove an existing directory or
folder.

' Assume that MYDIR is an empty directory or folder.
RmDir "MYDIR" ' Remove MYDIR.

Cheers,
Alan
>Hi,
[quoted text clipped - 9 lines]
>Thanks,
Anthony
--
Message posted via http://www.accessmonster.com

May 22 '07 #7
On Mon, 21 May 2007 03:46:02 GMT, "biganthony via AccessMonster.c om"
<u31673@uwewrot e:

Can you delete the folder manually?
Can you programmaticall y delete another folder you just created (e.g.
c:\test1\)?
Right-click folder Properties. Anything unusual?

-Tom.

>Hi,

I have the following code to select a folder and then delete it. I keep
getting a Path/File error on the line that deletes the actual folder. The
line before that line deletes the files in the folder but I get the error
message when the procedure attempts to delete the folder selected in the
BrowseforFolde rbyPath function.

How can I get it to delete the folder that the user has selected in the
Browse for Folder dialog?
Thanks,
Anthony
************** ********** BEGIN CODE SNIPPET *************** ***************

ArchiveFolder = BrowseForFolder ByPath(ProgramP ath)

'check if user has clicked the Cancel button.
If ArchiveFolder = vbNullString Then

Exit Sub

End If

'check if the selected folder is under the program folder.
If Left(ArchiveFol der, Len(ArchiveFold er) - 5) <ProgramPath Or
(Right(Archive Folder, 4)) Like "*[!0-9]*" Then

MsgBox "That is an invalid Archive folder." & Chr$(13) & Chr$(13)
& _
"Archives are located in the " & ProgramPath & " folder." & Chr$
(13) & Chr$(13) & _
"Please select an archive in the " & ProgramPath & " folder.",
vbOKOnly + vbInformation, "Invalid Archive Folder."

Exit Sub

End If

strDeleteQuesti on = MsgBox("Do you really want to delete the " &
ArchiveFolde r & " archive?", vbYesNo + vbQuestion, "Delete Archive.")

If strDeleteQuesti on = vbYes Then

'delete all files in the selected archive folder.
Kill ArchiveFolder & "\*.*" <----------------
- this line works.

Delete_Destinat ion = ArchiveFolder & "\" <------ this
line fails.

RmDir Delete_Destinat ion

MsgBox "The Archive has been successfully deleted.", vbOKOnly
+ VbInformation, "Success!"

End If

************** ************** END CODE SNIPPET
************** *************** ***************

This is the function I'm using for the Browseforfolder byPath:
Public Function BrowseForFolder ByPath(sSelPath As String) As String

Dim BI As BROWSEINFO
Dim pidl As Long
Dim lpSelPath As Long
Dim spath As String * MAX_PATH

With BI
.hOwner = Me.hwnd
.pidlRoot = 0
If RestoreArchive = True Then
.lpszTitle = "Archives are located under the application's folder." &
Chr$(13) & "What Archive do you want to Restore?"
Else
.lpszTitle = "Archives are located under the application's folder." &
Chr$(13) & "What Archive do you want to Delete?"
End If

.lpfn = FARPROCl(Addres sOf BrowseCallbackP rocStr)

lpSelPath = LocalAlloc(LPTR , Len(sSelPath) + 1)
CopyMemory ByVal lpSelPath, ByVal sSelPath, Len(sSelPath) + 1
.lParam = lpSelPath

End With

pidl = SHBrowseForFold er(BI)

If pidl Then

If SHGetPathFromID List(pidl, spath) Then
BrowseForFolder ByPath = Left$(spath, InStr(spath, vbNullChar) - 1)
End If

Call CoTaskMemFree(p idl)

End If

Call LocalFree(lpSel Path)

End Function

Public Function IsWinNT() As Boolean

#If Win32 Then

Dim OSV As OSVERSIONINFO

OSV.OSVSize = Len(OSV)

'API returns 1 if a successful call
If GetVersionEx(OS V) = 1 Then

'PlatformId contains a value representing
'the OS, so if it's VER_PLATFORM_WI N32_NT,
'return true
IsWinNT = OSV.PlatformID = VER_PLATFORM_WI N32_NT
End If

#End If

End Function
May 22 '07 #8
Tom (and other respondents),

Thank you for taking time to read and help.

I can delete the folder manually through Windows Explorer.

After I receive the error message when attempting to delete the folder
through the above code, I click OK to clear the message. I look in Windows
Explorer and the folder is there but all files have been deleted (as expected)
So I tried something new: If I immediately click the delete archive button
again, the code above runs again. So I select the folder (which is now empty)
from the browseforfolder bypath function, it deletes the folder!

A check in Explorer reveals that the folder is now gone.

So in summary:

When I click the command button for the first time to select the folder for
deletion, the browse for folder dialog opens. I select the desired folder to
delete and click OK. The files are deleted but the folder remains. I receive
the error message as reported above.

I then click the command button to select the same folder for deletion, the
browse folder dialog opens. I select the same folder (which is now empty) and
click OK. The code above runs and the folder is deleted. The folder is
deleted success message appears on screen and a check in Explorer reveals the
folder is now gone.

I am confused - the above code works on one machine, but not the on I'm on
now.

Thanks to all for responding.

Anthony
Tom van Stiphout wrote:
>Can you delete the folder manually?
Can you programmaticall y delete another folder you just created (e.g.
c:\test1\)?
Right-click folder Properties. Anything unusual?

-Tom.
>>Hi,
[quoted text clipped - 123 lines]
>>
End Function
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200705/1

May 22 '07 #9
Anthony,

Sorry about that. I read your message quickly, replied, read it again and
noticed my error and cancelled my original message. Too slow!

However, that stirred a memory. Could it be that one computer is much
faster than the other?
Perhaps DoEvents:

Kill ArchiveFolder & "\*.*"
Delete_Destinat ion = ArchiveFolder & "\"
DoEvents <--- Added this.
RmDir Delete_Destinat ion

Worth a try.

Cheers,
Alan
"biganthony via AccessMonster.c om" <u31673@uwewrot e in
news:728942a2e8 bca@uwe:
Alan,

All the files are deleted in the folder before attempting to delete
the folder.

The code I wrote above works on one computer but not the other. So
there must be something unique about the computer it does not work on.
I'm at a loss to determine why it doesn't work.

thanks
Anthony
May 22 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
12154
by: Charts | last post by:
I login as administrator of the machine. However running the following code get access denied exception for file inside the directory. The source code: DirectoryInfo target = new DirectoryInfo(TargetDirectory); target.Delete(true); I don’t have problem manually delete the whole directory. Please advice. Thanks,
2
2410
by: Cesar Ronchese | last post by:
Hello, I'm experiencing a very weird problem. I have a ASP.Net 2005 application (VB.Net) that creates some folders to store temporary files. example: Session_Start(...) IO.Directory.CreateDirectory(Server.MapPath(".") & "\SessionFolders\" & Session.SessionID) (...) The same application holds a session object that logs on to my server application (desktop - non ASP), that shows all connected clients in a listview. See sample code:
6
24626
by: lumpybanana247 | last post by:
anybody know how i could delete a FOLDER in c++? i know to delete a file is #include <iostream> #include <fstream> using namespace std; /* remove example: remove myfile.txt */
5
33195
by: fniles | last post by:
I am using VB.NET 2005. When I try to delete a folder that has files underneath it, it gave me "the directory is not empty" error. f = New IO.DirectoryInfo("C:\myfolder") If f.Exists Then f.Delete() --error "the directory is not empty" End If How can I delete a folder with files underneath it ? Thank you.
1
1301
by: =?Utf-8?B?QlQ=?= | last post by:
I am having problems with deleting some of my e-mail that has been put in the delete folder. It started with a few e-mails and has expanded to over 100 now. I get a Message that says ,Message could not be displayed Windows Mail encountered an unexpected problem while displaying this message. Any help with this would be greatly appreciated. Thanks, -- BT
4
1655
by: sunilkds | last post by:
I want code for how to copy folder,delete folder from one location to another. Plz give example I tried in this code but i couldnt move folder but i moved files(coy), code, path = file_object.GetParentFolderName(path) file_object.CopyFolder path, destination
9
2558
by: kashif73 | last post by:
Hi Everyone, How can I share a folder in ASP? I know how to create / delete folder using File System Object but can't figure out how to share a folder / files. Thanks.
4
2028
anfetienne
by: anfetienne | last post by:
hi ive got a folder on my server which is created by apache and the only way to delete it is with server coding. can someone tell me a way to delete that folder including all files and folders within it?
2
4937
Airslash
by: Airslash | last post by:
Hi, I'm currently working on a function to delete a folder and its files + subfolders. The function currently works for the target folder, but refuses to delete the subfolders and files in the subfolder. When I debugged the code it returned value 1024 n the SHFileOperation function. I have no idea what it means. anyone could tell me why the function is not deleting it's subdirectory?
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9552
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.