November 5, 20214 yr I'm trying to execute a .BAT file in my shares. It creates a new folder for each file in the directory, renames it after the file, then moves the file into the folder. I'm trying to avoid moving the entire contents of these folders onto my Win11 box over the network, running the script there, then moving all the resulting folders back. I don't know how to execute it on the server. Can I do this and, if so, what is the way? If I can't, can it be converted into a compatible script format and run via SSH ? The script is below: @echo off for %%i in (*) do ( if not "%%~ni" == "organize" ( md "%%~ni" && move "%%~i" "%%~ni" ) ) Edited November 6, 20214 yr by VelcroBP solved
November 6, 20214 yr Author Found an app called "FilesToFolders" that does it natively from my Windows PC directly in the share folders
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.