If someone is not logged in but click Post Reply button, then that someone instead of being automatically redirected to the login page [https://www.dostips.com/forum/ucp.php?mode=login] gets a page that says General Error SQL ERROR [ mysqli ] Table './dostips_forum/phpbb_qa_confirm' is marked as cra...
[...] Hint, there is nothing wrong with the filename or location. And so it seems Because now what I got was this X:\>( cd /D P: del /AH /S /Q ~$*.xlsm ) Could Not Find P:\~$*.xlsm Y:\>( cd /D W: del /AH /S /Q ~$*.xlsm ) Deleted file - Y:\TEST2\~$some test file.xlsm Z:\>( /D del /AH /S /Q ~$*.xlsm ...
As I had feared, the culprit is not what I am looking for but some other item Because now this @echo off for /F "skip=1" %%D in ('wmic logicaldisk get caption') do ( cd /D %%D dir /AH /S "~$*.xlsm" del /AH /S /Q ~$*.xlsm ) pause [with the exact same test locations and files as before] produces this ...
The above works, so thank you very much And the lines Set-Location -Path 'C:\'; ^ and %EndPowershell% can be removed - and so the final code can look like this powershell.exe ^ $directories = @( ^ 'C:\Users\YOUR-USER-NAME\AppData\Roaming\ASCOMP Software\BackUp Maker\logs' ^ ); ^ foreach ($directory ...
This script @echo off for /F "skip=1" %%D in ('wmic logicaldisk get caption') do ( cd /D %%D del /AH /S /Q ~$*.xlsm ) pause goes through every drive [except the system one] and deletes ~$WHATEVER THE REST OF NAME.XLSM files . However it can produce an outcome like this Could Not Find X:\~$*.xlsm Del...
I have this code set "THIS-WILL-BE-DELETED=C:\Users\YOUR-USER-NAME\AppData\Roaming\ASCOMP Software\BackUp Maker" del /q "%THIS-WILL-BE-DELETED%\*.*" dir "%THIS-WILL-BE-DELETED%" 1>NUL 2>&1 if errorlevel 1 ( echo Files were deleted at echo. echo C:\Users\YOUR-USER-NAME\AppData\Roaming\ASCOMP Software...
Use the standard line-continuation of cmd using a caret at the end of the line. The following will probably work (untested): [...] It did not I tried adjusting it myself and also failed You can review extensive examples of this method at this thread . Then I feed ChatGPT the code from this https://...