Here you ask "how to merge files", and now you ask "how to NOT merge". Do you know exactly what you need? It looks like you're trying to learn basic coding skills by asking others to write script examples for you. Did you try bugging Google instead? Best thing is attempting to code yourself and pos...
If you change the topic title in your 1st post as discussed, I'll try to help you the last time. :wink: Do you need to merge newly downloaded content to already existing backup folders, or create new backup folders each time you move recent content? What naming rules do you want to use for the new f...
im not totally compitent yet by a long way. Never will be if not trying to do things yourself. Do you need to move only remaining files to Other1, or also remaining folders somewhere else? Your appetite for moving things grows by an hour. :D To change the topic title, you need to edit the 1st post ...
There are always ways to do simple file operations in a batch. This forum is learning environment. You seems to be learning now how to check a batch code for execution errors. What is your extra code version? What errors does it give? Hint: consider setting Dest1 and Dest2 variables, and extra FOR a...
Try this script. @echo off setlocal set "source=O:\Temp\Other" & set "dest=O:\Temp\Other\btp" & set "prefix=B" for /d %%B in ("%dest%") do set "fold=%%~nxB" for /f "tokens=*" %%a in ('dir /b "%source%\%prefix%*"') do ( echo Moving "%%a" if exist "%source%\%%a\" ( xcopy "%source%\%%a" "%dest%\%%a" /s...
Thanks for your input. Solution complexity should correspond to the task at hand, and switching Current Display sounds straightforward at user level. For now I'd leave it "as is", it works OK though not ideal. Will see if someone can come up with a native Windows Shell solution. Its interesting in g...
Pls READ above post #5. Try modifying your script as suggested, then report any errors printed in open Cmd window or discovered. :D UPDATE : The error the modified code prints: Cannot perform a cyclic copy . If the code doesn't work as expected, add Exit /b at the end and debug it in an open Cmd Pro...
Your task is now changed beyond recognition. Where is your archiving code snippet?
If %%a looks like x.7zip , and you try to copy %%a\*.* , which means x.7zip\*.* , would you expect XCOPY to look inside each 7zip archive? Try xcopy "%source%\%%a" "%dest%\%%a" - any issues?
Thanks for the update. I need to go through your reply more in depth, but for now I can say, running DisplaySwitch.exe results in logging the same sequence of Microsoft-Windows-DisplaySwitch/Diagnostic Events each time regardless whether the display configuration changed or not, and how exactly. Whe...
Pls add exit /b to the end of your batch, and then post errors printed in open Cmd Window, when running your current batch from that window? Pls post examples of full file names moved with your current script, and compare them to examples of full file names that were NOT moved, but you expect the sc...
What are those blanks ........ for? Did you try "*.jpg" in FOR /R ? Did you test Echo your resulting variable values? When asking Qs, its better to explain what you try to accomplish with this code, since your code may contradict your goals, while you merely want to mask blanks in it.
I wonder if someone noticed that adding CR| allows to execute commands as if they were typed on separate lines in a batch file, while in fact they're typed on the same line. Its useful when adding commandline to Registry. I couldn't find mentioning it anywhere. Examples: :: Add command sequence to a...