{"id":17228373,"url":"https://github.com/barnabyc/scripts","last_synced_at":"2026-04-29T07:34:57.451Z","repository":{"id":143201259,"uuid":"94048250","full_name":"barnabyc/scripts","owner":"barnabyc","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-19T03:41:33.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-03T19:06:49.801Z","etag":null,"topics":["batch-file","ffmpeg","vbscript","windows"],"latest_commit_sha":null,"homepage":null,"language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barnabyc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-12T02:40:24.000Z","updated_at":"2017-06-12T03:22:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff96bd1b-17dc-46be-8b2d-63665c6102b9","html_url":"https://github.com/barnabyc/scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/barnabyc/scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnabyc%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnabyc%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnabyc%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnabyc%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barnabyc","download_url":"https://codeload.github.com/barnabyc/scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barnabyc%2Fscripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["batch-file","ffmpeg","vbscript","windows"],"created_at":"2024-10-15T04:43:32.320Z","updated_at":"2026-04-29T07:34:57.430Z","avatar_url":"https://github.com/barnabyc.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"## batch.cmd\r\nRun any arbitrary command against an iterable pattern. Similar to `xargs` on other platforms.\r\n\r\n`batch.cmd encode_as_h264_with_subdirs.cmd *.avi`\r\n\r\n## encode_as_h264_with_subdirs.cmd\r\nEncode a video file as x264 using ffmpeg. On success move to a destination path based on original file date.\r\n\r\n`encode_as_h264_with_subdirs.cmd timelapse_20170618.avi`\r\n\r\n## move_a_to_b.bat\r\nLiterally move a file from source to destination. Why? Because the `move` command can't be called from outside a Command Prompt. Annoying right? You could use `robocopy` but that seems like overkill.\r\n\r\n`move_a_to_b.bat d:\\foo\\bar.txt c:\\baz`\r\n\r\n## run_hidden_with_1_arg.vbs\r\nVBScript was the only reliable way I could find to run a command without any visible windows appearing. PowerShell has similar options but the initial ps1 script still creates a window of its own.\r\n\r\n`wscript run_hidden_with_1_arg.vbs encode_as_h264_with_subdirs.cmd timelapse_20170618.avi`\r\n\r\n## run_hidden_with_2_args.vbs\r\nLiterally the same but supports a 2nd argument. Obviously these should be a single script, but it wasn't really worth the effort.\r\n\r\n`wscript run_hidden_with_2_args.vbs move_a_to_b.bat d:\\foo\\bar.txt c:\\baz`\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarnabyc%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarnabyc%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarnabyc%2Fscripts/lists"}