- Local time
- 4:32 PM
- Posts
- 37
- OS
- Windows 11
Hey guys,
a hopefully quick question. I need a batfile that is executed in a folder without using the path. I'd put it into a gazillion other folders later and execute it everywhere. So, in a given folder are two subfolders, A and B. All files from B should move to A. THat is all, but I cant get it done for the life of me.
Its this command (from a MS-page)
move \data\*.xls \second_q\reports\
So, this is the correct syntax. What I do is this:
move \b\*.* \a\
The folders already exist, nothing is overwritten (they are testfolders anyway). The batfile is executed from the main-folder that contains the folders a and b. Please no other suggestions how to do this, this is about the syntax within this specific example, the actual problem is try to solve is way more complicated.
It just... doesnt... work... A window is opening, but closing immediately, so I cannot see an error. Where am I was being stupidly?
a hopefully quick question. I need a batfile that is executed in a folder without using the path. I'd put it into a gazillion other folders later and execute it everywhere. So, in a given folder are two subfolders, A and B. All files from B should move to A. THat is all, but I cant get it done for the life of me.
Its this command (from a MS-page)
Examples
To move all files with the .xls extension from the \Data directory to the \Second_Q\Reports directory, type:move \data\*.xls \second_q\reports\
So, this is the correct syntax. What I do is this:
move \b\*.* \a\
The folders already exist, nothing is overwritten (they are testfolders anyway). The batfile is executed from the main-folder that contains the folders a and b. Please no other suggestions how to do this, this is about the syntax within this specific example, the actual problem is try to solve is way more complicated.
It just... doesnt... work... A window is opening, but closing immediately, so I cannot see an error. Where am I was being stupidly?
My Computer
System One
-
- OS
- Windows 11
- Computer type
- PC/Desktop
- CPU
- Ryzen 5 2600x
- Motherboard
- X470 Gaming Plus
- Memory
- 32GB DDR4
- Graphics Card(s)
- RTX 3060
- Sound Card
- My last one was Soundblaster 16
- Monitor(s) Displays
- 2
- Screen Resolution
- 2560x1440 both; 120Hz and 75Hz
- Hard Drives
- SSD M.2 2TB with System, and a HDD 8TB for stuff






