Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   cannot read file :( (http://forums.winamp.com/showthread.php?t=300432)

cakirhal 29th November 2008 08:13

cannot read file from $TEMP :(
 
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.

cakirhal 29th November 2008 09:48

Re: cannot read file from $TEMP :(
 
Quote:

Originally posted by cakirhal
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.

Sorry, I solved. "source" statement was missing with in my ExecWait string. It must be like:

ExecWait '"$DESKTOP\mysql.exe" --user=$username --password=$password --execute="source $TEMP\file.sql" $db_name'

Thanks


All times are GMT. The time now is 05:16.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.