Add Today's Date to File Name Download

133 views
Skip to first unread message

Shane Bayles

unread,
Aug 18, 2021, 5:05:40 PM8/18/21
to GAM for Google Workspace
Is there a way to dynamically change a file name based on today's date in an Advanced GAM command?

I have a sheet that changes daily and I want to run the following command on a schedule to download it.

gam user username get drivefile id targetfolder "folder location here"  targetname TODAY format csv

Where TODAY automatically grabs today's date.

Jay Lee

unread,
Aug 18, 2021, 5:08:00 PM8/18/21
to google-ap...@googlegroups.com
Your OS can do this for you as a sub command. You didn't say what OS that is though...

Jay

This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachmentsPlease be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited.

--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" 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/50cd7fcf-ffb8-4308-804b-ff52292f1104n%40googlegroups.com.

Bayles, Shane

unread,
Aug 18, 2021, 5:13:29 PM8/18/21
to google-ap...@googlegroups.com
WIndows 10



--
Shane Bayles
Google Specialist
Waller ISD

Check out the WISD Technology Department for all your training needs and technology help videos and guides! We are here to help!

STAFF
https://sites.google.com/wallerisd.net/techtraining/home

PARENTS
https://sites.google.com/wallerisd.net/wisdparenthowtos/home

Jay Lee

unread,
Aug 18, 2021, 5:20:50 PM8/18/21
to google-ap...@googlegroups.com

Bayles, Shane

unread,
Aug 18, 2021, 5:38:53 PM8/18/21
to google-ap...@googlegroups.com

Dan Casmas

unread,
Aug 19, 2021, 2:48:16 PM8/19/21
to GAM for Google Workspace
I happened to have built a windows filename function. maybe it will help. (I am not a pro however)

https://github.com/dcazman/MRNAP
Reply all
Reply to author
Forward
0 new messages