Thứ Sáu, 27 tháng 7, 2018

Hướng dẫn đổi tên file hàng loạt với 1 click (*.VBS)

Có một cách thủ công nữa cũng khá hay và chuyên nghiệp. Cách này là chúng ta sẽ tạo ra một file *.vbs. Chỉ cần 1 click chuột và tất cả các file sẽ được đổi tên theo ý thích của bạn. Bạn có thể làm theo hướng dẫn như sau, rất đơn giản thôi.

+ Bước 1: Bạn cũng copy tất cả hình ảnh vào chung một Folder.

+ Bước 2: Bạn mở Notepad ra và dán đoạn sau vào và lưu lại với tên bất kỳ có đuôi là *.vbs

+ Bước 3: Bạn chỉ cần chú ý đến 2 đoạn mình tô mày xanh đó. Thay đường dẫn và tên tương ứng là được. Sau đó nháy đúp chuột vào file rename.vbs để rename file hàng loạt là xong.

Lưu ý: Để chỉnh sửa file *.vbs này thì bạn chỉ cần nhấn chuột phải vào file đó và chọn Edit để chỉnh sửa và lưu lại.


set fso = CreateObject("Scripting.FileSystemObject")
set root = fso.getFolder("E:\_Work\_DGC\180728\Resources\Vong quay")
Dim number

for each file in root.Files
number=number+1
file.Name = "vong-quay" & number & "." & fso.GetExtensionName(file.Name)
next

Change location of Chrome cookies folder

1. Shut down Chrome. Then open Task Manager and check the processes and make sure the Chrome process is not running. Just closing Chrome doesn't always shut down the Chrome process, and if it's running, it will lock certain files that you need to move in the next step.
2. Create a directory at some suitable location where you want the cache to go, for example D:\Chrome Cache and Profile
3. Navigate to where Chrome is installed, and move the entire "User Data" directory into this new directory you created in the previous step. The User Data directory is usually found at C:\Users\{username}\AppData\Local\Google\Chrome\User Data. Just move the whole User Data directory to the new location. So now in the new location you'll have a User Data directory, like so "D:\Chrome Cache and Profile\User Data". And the User Data directory will be gone from the original location, because you moved it.
4. Next, open an elevated command prompt (right click the command prompt icon and choose "Run as Administrator"). In the command window, type:
mklink /J "C:\Users\{username}\AppData\Local\Google\Chrome\User Data" "D:\Chrome Cache and Profile\User Data"
Make sure to replace the {username} with your own user account name. Don't leave out the quotes, they are necessary.
That's it. Next time you start Chrome, it will store all files related to your profile (including cache) at the new location.