Hi
I have a script that prompts user some values and execute a file's content like this:
SetOutPath "$TEMP"
SetOverwrite on
File 'file.sql'
ExecWait '"$DESKTOP\mysql.exe" --user=$username --password=$password --execute="$TEMP\file.sql" $db_name'
This script fails. What is the problem?
Thanks.
cannot read file :(
2 posts
Re: cannot read file from $TEMP 🙁
ExecWait '"$DESKTOP\mysql.exe" --user=$username --password=$password --execute="source $TEMP\file.sql" $db_name'
Thanks
Originally posted by cakirhalSorry, I solved. "source" statement was missing with in my ExecWait string. It must be like:
Hi
I have a script that prompts user some values and execute a file's content like this:
SetOutPath "$TEMP"
SetOverwrite on
File 'file.sql'
ExecWait '"$DESKTOP\mysql.exe" --user=$username --password=$password --execute="$TEMP\file.sql" $db_name'
This script fails. What is the problem?
Thanks.
ExecWait '"$DESKTOP\mysql.exe" --user=$username --password=$password --execute="source $TEMP\file.sql" $db_name'
Thanks