J
Jerlosch
Hello Microsoft Community,
I have been trying to delete a folder I named "con.law.finals.materials" without realizing the problem of including con in a folder name. I have tried every solution I could find on the internet but nothing seems to work (running either PowerShell or cmd prompt as admin on Windows 10):
1----
>rd \\?\C:\Users\jsche\GoogleDrive\TheArchive\Cloudtop\RecentDownloads\con.law.final.materials /S /Q
returns the following error:
Remove-Item : A positional parameter cannot be found that accepts argument '/S'.
At line:1 char:1
+ rd \\?\C:\Users\jsche\GoogleDrive\TheArchive\Cloudtop\RecentDownloads ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: ) [Remove-Item], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
2----
I read that the problem may be that the folder contains other files and I may need to overwrite the old folder with a new one before I can delete, but the robocopy command also let me down.
>md new
>robocopy C:\Users\jsche\GoogleDrive\TheArchive\Cloudtop\RecentDownloads\con.law.finals.materials
new /mir
returns the following error
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Friday, May 18, 2018 8:58:41 AM
2018/05/18 08:58:41 ERROR 1168 (0x00000490) Getting File System Type of Source \\.\con\
Element not found.
Source - \\.\con\
Dest : C:\WINDOWS\system32\new\
Files : *.*
Options : *.* /S /E /DCOPYA /COPYAT /PURGE /MIR /R:1000000 /W:30
------------------------------------------------------------------------------
2018/05/18 08:58:42 ERROR 53 (0x00000035) Accessing Source Directory \\.\con\
The network path was not found.
Waiting 30 seconds...
This message continues until I exit the program.
3---
I've also tried downloading a third party shredding program and using a 7 pass algorithm to delete the folder and the containing folder with no luck.
4---
I've also tried resetting Windows 10 (keep my files) without successfully being able to delete.
Genuises, unite and please help me eradicate this cancer in my machine! Thanks!
Other Notes:
-I cannot move the folder
-At one point a dialogue appeared but I did something to prevent that from happening, though I cannot remember what. Now it just does nothing when I select delete
-I have MalwareBytes, but have tried to do all of the above with it disabled.
-It is located in my google drive folder as you can tell, but still wouldn't delete even when backup and sync was not installed.
-I deleted it from google drive online and it obviously did not sync.
-I've also tried the fsutil and rmdir commands with no luck, but could not find the error messages to post.
Continue reading...
I have been trying to delete a folder I named "con.law.finals.materials" without realizing the problem of including con in a folder name. I have tried every solution I could find on the internet but nothing seems to work (running either PowerShell or cmd prompt as admin on Windows 10):
1----
>rd \\?\C:\Users\jsche\GoogleDrive\TheArchive\Cloudtop\RecentDownloads\con.law.final.materials /S /Q
returns the following error:
Remove-Item : A positional parameter cannot be found that accepts argument '/S'.
At line:1 char:1
+ rd \\?\C:\Users\jsche\GoogleDrive\TheArchive\Cloudtop\RecentDownloads ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: ) [Remove-Item], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
2----
I read that the problem may be that the folder contains other files and I may need to overwrite the old folder with a new one before I can delete, but the robocopy command also let me down.
>md new
>robocopy C:\Users\jsche\GoogleDrive\TheArchive\Cloudtop\RecentDownloads\con.law.finals.materials
new /mir
returns the following error
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : Friday, May 18, 2018 8:58:41 AM
2018/05/18 08:58:41 ERROR 1168 (0x00000490) Getting File System Type of Source \\.\con\
Element not found.
Source - \\.\con\
Dest : C:\WINDOWS\system32\new\
Files : *.*
Options : *.* /S /E /DCOPYA /COPYAT /PURGE /MIR /R:1000000 /W:30
------------------------------------------------------------------------------
2018/05/18 08:58:42 ERROR 53 (0x00000035) Accessing Source Directory \\.\con\
The network path was not found.
Waiting 30 seconds...
This message continues until I exit the program.
3---
I've also tried downloading a third party shredding program and using a 7 pass algorithm to delete the folder and the containing folder with no luck.
4---
I've also tried resetting Windows 10 (keep my files) without successfully being able to delete.
Genuises, unite and please help me eradicate this cancer in my machine! Thanks!
Other Notes:
-I cannot move the folder
-At one point a dialogue appeared but I did something to prevent that from happening, though I cannot remember what. Now it just does nothing when I select delete
-I have MalwareBytes, but have tried to do all of the above with it disabled.
-It is located in my google drive folder as you can tell, but still wouldn't delete even when backup and sync was not installed.
-I deleted it from google drive online and it obviously did not sync.
-I've also tried the fsutil and rmdir commands with no luck, but could not find the error messages to post.
Continue reading...