Problem
I have the following batch file (see below), on my own computer it runs successfully. It runs a Python executable compiled with GooeyParser, passes some variables to the batch script through temporary text files, then uses Google Dev Console to upload the file into GSC then BigQuery.
On my co-workers computer, the batch script just stops running after the gsutil
command. There are no error messages, the script just stops running.
The individual commands run successfully on his computer.
Does anyone know why the batch script might only partially run?
Batch File
::spawns as a subprocess to avoid console window closing and losing error messages
if not defined in_subprocess (cmd /k set in_subprocess=y ^& %0 %*) & exit )
::python script writes out file location to temporary file
"BQ Single File Upload - dont run by itself.exe"
SET /p FILEUPLOAD=<temp_file_path
SET /p FILENAME=<temp_filename
SET /p DATASET=<temp_dataset
SET /p TABLE=<temp_table
SET /p SCHEMA=<temp_schema
DEL temp_file_path
DEL temp_filename
DEL temp_dataset
DEL temp_table
DEL temp_schema
gsutil cp %FILEUPLOAD% "gs://our_data/%FILENAME%"
cmd.exe /c bq mk %DATASET%
bq load --max_bad_records=5 --skip_leading_rows=1 --allow_quoted_newlines --schema %SCHEMA% %DATASET%%TABLE% "gs://our_data/%FILENAME%"
PAUSE