Тёмный
V!Ru5 @ Bitfragment
V!Ru5 @ Bitfragment
V!Ru5 @ Bitfragment
Подписаться
Комментарии
@michaelrbodner
@michaelrbodner 2 месяца назад
I was using a service called MultCloud to move files around on a schedule and it fails almost daily. You just saved me the expense of a third party app, but more importantly something that will just work. Thank you!!!
@user-rs3yj3oq9n
@user-rs3yj3oq9n 4 месяца назад
is there a possibility to make it to another server?
@EhabAref-gh4mr
@EhabAref-gh4mr 7 месяцев назад
big thnx to you
@francescoorru1980
@francescoorru1980 9 месяцев назад
also good for Windows Server 2016 :)
@youtubee-rz4zr
@youtubee-rz4zr Год назад
Thx for the solution bro you such a good man (:
@bitfragment
@bitfragment Год назад
Ty for watching!
@krishnaprasad4138
@krishnaprasad4138 Год назад
Yes, Perfect ! It worked.
@bitfragment
@bitfragment Год назад
Thanks for watching.
@fatemaalnajjar5374
@fatemaalnajjar5374 Год назад
Great video. But the music is very disturbing and unnecessary.
@bitfragment
@bitfragment Год назад
Thanks for the feedback.
@jarminatorK5
@jarminatorK5 Год назад
the only video that helped me thank you!!!!!
@bitfragment
@bitfragment Год назад
Thanks for watching!
@n3utra
@n3utra Год назад
thank you very much
@2010KEV2010
@2010KEV2010 Год назад
Microsoft.UpdateServices.Administration.CommandException: Failed to start and configure the WSUS service this did not solve my issue
@mattdavis1975
@mattdavis1975 Год назад
dude, you're a hero!
@bitfragment
@bitfragment Год назад
Thanks for watching, Matty.
@jaysaherobmnr9575
@jaysaherobmnr9575 Год назад
Hi @bitfragment, Can you please help me? I'm looking for the script that can move first 1000 files to another directories. Thank you in advance.
@RockFordCademce
@RockFordCademce 2 года назад
how do you make it only move one specific file extention? like for example only move .txt files?
@bitfragment
@bitfragment 2 года назад
You replace * .* with *.txt, like this: With CreateObject("Scripting.FileSystemObject") .MoveFile "\\source\drive$\source_folder\*.txt", "\\destination\drive$\target_folder\" End With
@doriscode
@doriscode 2 года назад
Hi, I'm from Indonesian, thank you for the instructions, really helpful, Is there a way to script a file copy based only on the current date? sorry if my english was good enough. 🙂
@mikewabrown1052
@mikewabrown1052 2 года назад
really good vid, thank you!
@joshhobson2340
@joshhobson2340 2 года назад
Is there any way to make the script only select folders after a certain date ? Current situation is I would like to move all files within a specific folder older than 1 year over to another folder on the same network drive.
@bitfragment
@bitfragment 2 года назад
Hello Josh, Not with the VBScript in this video but you could easily do it with Powershell. Something like this should work: Get-Childitem -Path "d:\source_folder" -Force | ?{$_.LastWriteTime -lt (Get-Date).AddDays(-365)} | Move-Item -Destination "e:\destination_folder" -Force This can be saved as a .ps1 file which in turn can be referenced via a Scheduled Task that can be run once every few months depending on your need. Give it a run and let me know if there are any issues. Cheers!
@joshhobson2340
@joshhobson2340 2 года назад
@@bitfragment that’s great. Thanks for the info and quick response it’s really appreciated.
@bitfragment
@bitfragment 2 года назад
@@joshhobson2340 No worries! Make sure to test it before running it on your main folders :D
@TrojenMonkey
@TrojenMonkey 3 месяца назад
@@bitfragment You can with batch. It's called Robocopy. with /minage, you can decide how old the file should be before it'll be transferred.
@mdrashidhussain7168
@mdrashidhussain7168 2 года назад
It's wrong information
@bitfragment
@bitfragment 2 года назад
What's the right information then?
@ankitpandey-wv3uj
@ankitpandey-wv3uj 2 года назад
thank you so much
@paradikafarandi5017
@paradikafarandi5017 2 года назад
WOOWWW u save my life!! Thanks
@bitfragment
@bitfragment 2 года назад
Thanks for watching bro!
@381multansharef8
@381multansharef8 2 года назад
hello programer i have a some problem about programing i have 0 knowldege about programing but i want to make a programe i have many employee folder like this 09140. 09141. 09142.09143... and i have many document like this 09142.pdf 09142.jpg 09143.jpg ..i want to make a program file auto move in same name of folder if u have a code i want just copy here and past in powershell and program work for me and please also mention the where i can put source path and destination path .
@forme1546
@forme1546 2 года назад
Thank you tu m’a souve
@MCDHHM
@MCDHHM 2 года назад
I've been trying to fix this problem the whole day. You are my savior !!
@villa250491
@villa250491 2 года назад
Great video! Thak you! Which programs we may need hace installed to do this moving function? Do you have an script to also rename each file when it is moved?
@theSpicyHam
@theSpicyHam 3 года назад
all that girly stuff yet the blackmasta stronger?
@pamelapazfigueroaarias4705
@pamelapazfigueroaarias4705 3 года назад
te amo
@bitfragment
@bitfragment 3 года назад
Gracias :D
@djavidu
@djavidu 3 года назад
2:12 <3
@damian9433
@damian9433 3 года назад
Save my life. Thanks bro.
@bitfragment
@bitfragment 3 года назад
Thanks for watching!
@Get_CreepD
@Get_CreepD 3 года назад
666th view
@amazement.store.
@amazement.store. 3 года назад
i am stuck in 2012 r2 automatic repair looping, in command prompt in disk part my c drive is system reserved and d drive is windows, any idea?
@bitfragment
@bitfragment 3 года назад
Did you try rebuilding the boot sectors? From CMD in the troubleshooting/diagnostics screen after a failed boot run the following commands in this specific order: bootrec /FixMbr bootrec /FixBoot bootrec /ScanOs bootrec /RebuildBcd And then reboot the server.
@amazement.store.
@amazement.store. 3 года назад
@@bitfragment no i was try to recover data first, now i want to rebuild structure as standard like c will be windows and d will be data drive i need help
@balaganeshl9643
@balaganeshl9643 3 года назад
Thanks Dear...after 3 hours struggling, got solution from this video...
@Journetta
@Journetta 3 года назад
how do you copy files?
@bitfragment
@bitfragment 3 года назад
Instead of .MoveFile you declare .CopyFile, like this: With CreateObject("Scripting.FileSystemObject") .CopyFile "\\yourlocation\drive$\source_folder\*.*", "\\yourotherlocation\drive$\target_folder\" End With
@Journetta
@Journetta 3 года назад
Or use Synctoy
@hawkarkhalil6472
@hawkarkhalil6472 3 года назад
Thanks So Much! I had this issue while setting up a VM lab with three servers and one client and after googling the error, you video just popped up... Thanks a lot!
@bitfragment
@bitfragment 3 года назад
Awesome, glad to help and thanks for watching! Happy holidays!
@khaledbenfajria
@khaledbenfajria 3 года назад
thank you
@bitfragment
@bitfragment 3 года назад
No problem. Thanks for watching.
@jasminpattnaik9620
@jasminpattnaik9620 3 года назад
Thanks for this code..it worked for me.I have to rename it as the file_todaysdate,what will be the necessary changes I have to make in this code
@KaidoFujimi
@KaidoFujimi 3 года назад
That was excellent. Excellent.
@bitfragment
@bitfragment 3 года назад
Glad it helped. Thank you for watching!
@LeeNaMinaFamily
@LeeNaMinaFamily 3 года назад
Thank you ! i have done
@wahyuarditya8406
@wahyuarditya8406 3 года назад
Thanks for video. I have a question let say i have 10 folder and i want move it with different times. ex. folder 1 i want move it where file more than 1 year. folder 2 more than 2 years . 3-10 thanks
@cuisinepratique7761
@cuisinepratique7761 3 года назад
Thank you very much ! I have a source folder of 10000 files inside and I want to synchronise only 10 to 50 files per day in the target folder. Is it possible to do this please ?
@ramyamaradana860
@ramyamaradana860 3 года назад
Hi Thanks for the video. I have a scenario, my source file is in one server and I need to write a VBA script to move the file to another server for which I know the user name and password.so, how can I write a script including username and password in it?
@mohdshezan8411
@mohdshezan8411 4 года назад
Hi Bitfragment , Can you help me to auto move with overwrite from one folder to another folder ? I just created a script and its working fine and the only thing is its not getting overwrite if same file is exist in another folder. here is the script what i wrote : On Error Resume Next With CreateObject("Scripting.FileSystemObject") .MoveFile "D:\Folder1\*.PDF*", "D:\Folder2\" END WITH I want that : If a file with name ABC.PDF is in FolderA so it should be auto moved to Folder B with overwrite if already exist there.
@bitfragment
@bitfragment 4 года назад
Hi Mohd, Unfortunately, the VBScript MoveFile method works only when the target file does not exist. This is very limited and I do not encourage you to use it, this video was more to show how to use something different than what you would do normally, to get the job done. I would encourage you to try powershell instead. Create a powershell script with this command and run it with the scheduled task instead of the VBScript: Move-Item -Path \\10.10.10.10\c$\test\*.* -Destination \\10.20.20.20\c$\test2\ -Force Replace the -Path IP address with your SOURCE server and -Destination with your destination server. Using the -Force switch at the end will overwrite files if they already exist. Hope this helps! Vlad
@casual_gaming_de
@casual_gaming_de 4 года назад
Wonderful, thanks a lot!
@AlPerreault
@AlPerreault 4 года назад
Thank you for the instructions. Is there a way to move all the subfolders and files in those sub folders as well? ie \\target\folder1\sample.txt
@LittleKenshiro
@LittleKenshiro 4 года назад
Very helful worked on Vmware workstation 15 Thank you.
@bitfragment
@bitfragment 4 года назад
Glad it helped.
@checkthatsunburn
@checkthatsunburn 4 года назад
Tried this myself... google translate's goin' to jail
@erichoudek6396
@erichoudek6396 4 года назад
This video is awesome. Thanks for upload. Very simple, very clear, very awesome.
@bitfragment
@bitfragment 4 года назад
Thank you for your kind words and thanks for watching :)
@mewomewmew
@mewomewmew 4 года назад
Wow
@poonamagarwal8229
@poonamagarwal8229 4 года назад
🤘✌️
@shadabshaikh4063
@shadabshaikh4063 4 года назад
wow thank you so much sir
@bitfragment
@bitfragment 4 года назад
My pleasure Shadab, glad I could help!
@SanyaMona
@SanyaMona 4 года назад
Thanks!!!
@bitfragment
@bitfragment 4 года назад
You're welcome :)