Page 1 of 1
Delete Directory
Posted: 02 May 2025 16:33
by hermhart
I think I am missing something really simple, but I don't know what. Shouldn't the following work to delete the directory called "_Exports" that is on my desktop in the sub-directory of "test"?
delete 0,0, "%desktop%\test\_Exports";
XY 27.00.0400
Windows 11 64-bit
Re: Delete Directory
Posted: 02 May 2025 17:25
by highend
Not if it is in %commondesktop% / %desktopreal%...
Re: Delete Directory
Posted: 02 May 2025 17:32
by hermhart
But both %desktop% and %desktopreal% are taking me to the same place. Should it make a difference?
Re: Delete Directory
Posted: 02 May 2025 17:37
by highend
Code: Select all
text quicksearch("/d", "%commondesktop%");
text quicksearch("/d", "%desktopreal%");
Re: Delete Directory
Posted: 02 May 2025 17:54
by hermhart
It is not in %commondesktop%. But it is in %desktop% and %desktopreal% (which both point to the same location). Just strange that using the delete command to a directory in a sub-directory of %desktop% doesn't work. So I guess to get around this I will use %desktopreal%.
Thank you, highend.
Re: Delete Directory
Posted: 02 May 2025 23:56
by jupe
SC delete requires full path, which %desktopreal% is, whereas %desktop% resolves to a relative path.