Комментарии:
I have a script on copying files from 1 folder to a new folder. How do i write a script to have it randomly select 25 files from the folder I copied all the files to and have it create and move into a new folder until all the files have been moved. I have 3000 pictures in a folder and I want it to randomly move 25 files into 120 new folders with just 1 click. Then have it loop so it repeats the process multiple times. So for example what I want to happen is I want to copy 3000 files into a folder then have it randomly select 25 images from this folder and move into a new folder. Each time it randomly selects 25 images it creates a new folder and then moves the 25 images into it. I want it to repeat this process until all 3000 images has been moved. Then after all the images have been moved I want it to loop and repeat the process multiple times according to how many repeats i set it at so for 3000 images thats 120 folders of 25 images so if I set the repeat number to 10 when it is finished i will have 1200 folders of randomly selected images.Thanks for all your information and help :}
ОтветитьAmazing programming
ОтветитьThank you
ОтветитьYour way of teaching is very good. Please make more videos on different programming languages. Specially python
ОтветитьSuper Guru,
can a batch file run without showing the cmd interface?
Hi sir, i need a query for using xcopy command in windows to copy recent files in source location
ОтветитьI have a problem so i want to paste my fille to a place.
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\START Menu\Programs\Startup but becaus there is a START in it is doenst work
Can you pls help me.
Let’s say I’m moving a file to a software directory on different computers and one system is using a different software version. Can I make that universal as well like we do with the user name? %username%
ОтветитьThank you! Just what I was looking for. Highly appreciated
ОтветитьFor me it says 'The syntax of the command is incorrect." Help.
ОтветитьThis is super helpful! Thank you for your work!
ОтветитьHow to copy different files with filenames to a folder, if i have a list of names
ОтветитьI understand how to use a bat file to open a application but I am not show how to hit the 'Run' button within that application. Any ideas?
Ответитьthanks for teaching me how to heck you are A w E s O m E @w@~~
ОтветитьMy drive path has space and the code don't work. I'm trying to backup in OneDrive Synce on my PC which can't change Synce name :D it shows like this "C:\Users\user\OneDrive - Contoso Group of Companies"
Ответитьthanks ! very helpful man
ОтветитьAccess Is Denied. Help
ОтветитьHi, looking to c:\\copy abcd-10.txt c:\\bcd*.txt Is there a way to drop the first char while copying in a command line? Thanks!
ОтветитьMove files, yay
ОтветитьHoly crap the username prob is fixed
Ответитьbut how do i copy shortcut files? i used "copy walmart.lnk %userprofile%\%appdata%\Microsoft\Windows\Start Menu\Programs\Startup" and it dosent work
Ответитьhow to remove the "<file> has a file name
F = File D=Directory" ?
If I wanted to copy my picture folder or music or anything that's mainly used on the desktop. How can i use batch to copy it into a destination folder?
Ответить2021
Ответитьhow to copy a file to a certain folder in my usb? it says syntax of the command is incorrect.
Ответитьthe %CD% dose not work
ОтветитьIt s possible to arrange random folders?
Ответитьwho is watching this in 2020?
ОтветитьThank you for your help :-)
.
I have been using "xcopy" for quite some time to back up / restore game save files from C:\ to G:\ drives, in case of the dreaded loss of progress with corrupted game save or whatever. However, I was looking for a "move" option, as one of my games uses the Documents and Settings "Macromedia" folder to store the save file. Obvious to say that this was a poor location for a game save, as this folder is used for temp items for many other programs / games and some of them see my game save as "cache" and gets deleted. I now "move" the vulnerable directory folders and game save to / from the risky area. Using AutoHotKey, I have written a script that executes a set of batch files pre-launch and exit of game to forever avoid losing my game save again :-)
.
NOTE: I had to remove ALL various "/s /q /h /k /i /e" parameters that work just fine with xcopy, but cause move to fail. You likely see why some of these parameters caused this issue, but avoiding the use of any of them, gets the job done just fine... Thanks!
How can i remove a script i installed via batch file in windows ?
ОтветитьIf I wanted to grab video files of a certain size say over 700 mags and move them to a program called vidcoder so that vidcoder could encode them how would I write the batch file for that
ОтветитьMan i just learned so much!
ОтветитьThank you sir.
I hv an issue.
I hv 100 excel files names are A, B, C and so on. And I also hv 100 folders with same name as A, B, C and so on. NOW what I want? Actually, I want to copy or move excel files to the folders of same name, l, e, A file will move or copy to the foldet of name A and respectively. Can u please tell me, is it possible and how?
can you please give syntax to copy specific files, eg. if I want to copy 3 out of four files
ОтветитьFor the majority of you watching this in 2020, for this to work you need to type:
@echo off (if you want to add a statement echo...)
xcopy /s /y "C:\..." "C:\"..."
Just do what he did but with outside of them " ".
NECROPOST!!!! Lol
SOOOOO, I am not a newbie with windows, its manipulation and automation. I am just searching for an easier way of doing som VERY redundant operations. I am not an expert with CMD, but I can get SOME things accomplished. I am a "Shadetree Windows Mechanic" if you will. ANYHOW....I'm sorry, I am rambling on....
I found a method of copying a single file to multiple folders using a .bat file. It works, but I want to create a few batch files. One for copying multiple folders to multiple locations such as: "folders 1 folder 2 and folder 3" then copy it to a sub folder like "main\second subfolder\destination folder\".
The next, I would like to copy say, 'Config.cfg" to multiple sub folder locations? Like "path-to-folder\*.*\saves\".
Here is the command I am using for the first method
@echo off
for /D %%a in ("path-to-folder\*.*") do xcopy /y /d path-to-file\file.FileExt "%%a\"
For an added bonus, is there anyway to provide get command prompt to create multiple blank txt files named by a list provided?
ie: I created "filelisting.txt" of all folders in a provided directory using cmd, then after creating said file, is there a command to feed cmd that txt file to create multiple blank texts titled after each folder in said directory? I hope that makes sense.😬 I am quite tired and have been working on my HTPC/Arcade all night trying to tackle and get OpenBOR setup with my frontend and middleware launcher (RocketLauncher is finicky asf but worth it when configured).😴
COME BACK!!!
ОтветитьThis is so useful for automating simple tasks.
Ответитьxcopy is used if you want to keep the original NTFS permissions.
ОтветитьDo you know how to send a file to an email in batch programming?
ОтветитьHi, I need to copy a bat file to another PC, please I need help
ОтветитьI'm using Visual Studio instead of Notepad++.
Is fine to me.
What happened to the volume on this video???
It took you that long to know the file's path??? O_O
my usb capacity tester will be done soon!
ОтветитьDoes anyone have a batch file that actually batches something together? What I just watched I can do with the right-click menu, or ctrl + c and Ctrl + V. Nothing useful here. but if you shown a way to actually batch files then I would be all over that sub button. I'm looking to batch a single image into multiple images all with different names. I have a list of names but need to see how the code can replicate images with multiple names.
Ответитьmy grandkids have put .jpeg files in different directories on my e: drive. But they put them anyplace they can drop them. Is there a way to move *.jpeg with some command line that finds them anyplace on the e: drive and puts them all into one folder? I can't search for a name because the grandkids don't remember. Only that they are .jpeg files they drew. Help!
ОтветитьIt always say that it cant find the file i want to copy
Ответитьhow do you mark spaces in the path like C:\Desktop\Editing Stuff if i just put it like that it will not take the stuff word into the path
ОтветитьI appreciate you taking the time to do this. It is actually very helpful... The basics are always helpful
Ответить