I'm attempting to create a large number of folders for a single user, based off a txt file that runs fine for 5-10 folders, then it will just return "Error: invalid_request". If I wait a couple minutes, and restart the batch file, the ones that failed previously will work but again I only get a handful of folders created until it errors out again.
#1: Is there a limit on how many commands can be processed per minute like this?
#2: Is there a good way to slow down my script so that it will not surpass this threshold? The text list I'm pulling from is many hundreds long, so to have to watch this and constantly edit the list to remove successes is a large pain.
The script I'm working with looks something like this:
For /F "tokens=*" %%a in (c:\gam\info.txt) Do gam user [User email] add drivefile drivefilename "%%a" mimetype gfolder parentname "Parent"