How to bulk rename files within team shared folders

445 views
Skip to first unread message

CDM

unread,
Nov 24, 2019, 4:10:00 PM11/24/19
to GAM for G Suite
I have a number of files across multiple team drives that I need to rename.  I have a csv file that contains the original file name (Name), the new file name (NewName), the file ID within google (ItemID), the last user to make a change (User), and the team drive name/owner (owner).  I know the syntax for updating via "user" for a google My Drive but don't know how to make GAM point and change the files within team drive.  

for My Drive it would be:  c:\gam\gam.exe csv C:\gam\Update1.csv gam user ~User update drivefile drivefilename ~Name newfilename ~NewName

Ross Scroggs

unread,
Nov 24, 2019, 7:06:43 PM11/24/19
to google-ap...@googlegroups.com
CDM,

If you've got the fileID, ItemID in your case it appears, then do the following:
c:\gam\gam.exe csv C:\gam\Update1.csv gam user ~User update drivefile id ~ItemId newfilename ~NewName

Ross

On Nov 24, 2019, at 1:10 PM, CDM <carol....@la.gov> wrote:

I have a number of files across multiple team drives that I need to rename.  I have a csv file that contains the original file name (Name), the new file name (NewName), the file ID within google (ItemID), the last user to make a change (User), and the team drive name/owner (owner).  I know the syntax for updating via "user" for a google My Drive but don't know how to make GAM point and change the files within team drive.  

for My Drive it would be:  c:\gam\gam.exe csv C:\gam\Update1.csv gam user ~User update drivefile drivefilename ~Name newfilename ~NewName

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/f1713c0e-1012-4e07-83dd-a1911dd61560%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages