Skip to content

Instantly share code, notes, and snippets.

@aimfireready
Last active October 23, 2020 16:43
Show Gist options
  • Select an option

  • Save aimfireready/3792b3573f9aedbba9fdaff0c0ee7eed to your computer and use it in GitHub Desktop.

Select an option

Save aimfireready/3792b3573f9aedbba9fdaff0c0ee7eed to your computer and use it in GitHub Desktop.
:: Goolog - The Poor Man's Logging System
:: License: MIT
::
:: Installation:
:: 1. Make a new Google Form with 2 input fields.
:: 2. Create a Pre-filled Link and copy-paste the URL below
:: 3. Replace the "viewform" in the original URL with "formResponse"
:: 4. Replace the entry ID number for each input field.
:: 5. Test and troubleshoot.
:: Add this file to a folder in your PATH to use it in the Run dialog.
@echo off
SET /p title=Enter Title:
SET /p desc=Enter Details:
SET formurl=https://docs.google.com/forms/d/e/ROFLpQLSd6NY2FPcG43PF2inu3ethQi5-6ogfp-6KXZuAnJfpaZesvew/formResponse?usp=pp_url
::echo Title is %title%
::echo Desc is %desc%
curl -sS --data-urlencode "entry.1847539730=%title%" --data-urlencode "entry.1097993305=%desc%" "%formurl"
:: pause
Inspired by https://yaz.in/p/submitting-a-google-form-using-the-command-line/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment