FileCopy,"#$q%WAIK%\Tools\PETools\x86\winpe.wim#$q",""%basedir%"\Temp\"%ProjectTitle%""
THis just Fails, please help, log file attached....
Posted 06 June 2009 - 02:07 AM
Posted 06 June 2009 - 04:54 AM
Remove some double quotes, keeping only those surrounding target, like this:FileCopy,"#$q%WAIK%\Tools\PETools\x86\winpe.wim#$q",""%basedir%"\Temp\"%ProjectTitle%""
THis just Fails, please help, log file attached....
Posted 06 June 2009 - 10:21 AM
Since about WinBuilder 076 you can (and should) omit all quotes, unless there is a written space in a command line.Remove some double quotes, keeping only those surrounding target, like this:
FileCopy,%WAIK%\Tools\PETools\x86\winpe.wim,%basedir%\Temp\%ProjectTitle%
Posted 06 June 2009 - 10:32 AM
....., unless there is a written space in a command line.
Posted 06 June 2009 - 11:05 AM
Posted 06 June 2009 - 11:45 AM
FileCopy,"%WAIK%\Tools\My_personal_PETools\x86\winpe.wim","%basedir%\my_non_standard_Temp\%ProjectTitle%"
FileCopy,%WAIK%\Tools\PETools\x86\winpe.wim,%basedir%\Temp\%ProjectTitle%
Posted 06 June 2009 - 12:00 PM
Yes, the second assumption is correct.Following does not need quotes, IF neither of %WAIK%, %basedir% and %ProjectTitle% expand to something like "My_prog_dir":
or it does NOT need quotes EVEN IF any of %WAIK%, %basedir% and %ProjectTitle% expand to somthing like "My_prog_dir"? <- I have understood this one to be the correct answer
Posted 06 June 2009 - 05:58 PM
Posted 06 June 2009 - 06:03 PM
Usually %WAIK% should be known through ALL scripts.So i found that what i was doing wrong is that %WAIK% is in a different script, can someone give me an actual example of how to use AddVariable as my attempts fail...... a lot......
Posted 06 June 2009 - 06:20 PM
Posted 06 June 2009 - 07:01 PM
Please have a look at the board rules, and then tell us what you want to do.... so I can call the variables from my previouse script.
is not a good description for members wanting to help you.variables from my previouse script
Posted 06 June 2009 - 07:07 PM
Posted 06 June 2009 - 07:17 PM
Appearently you did not look at the board rules, as I suggested in post #11.AddVariables,%ScriptFile%,Section
the section is Main
Post the two scripts here!I have a script called "Base PE.script" that i want to call the %WAIK% variable from "004 - WAIK Check.script"
Posted 06 June 2009 - 08:01 PM
Posted 06 June 2009 - 08:17 PM
Today in Germany it is late enough.Post the two scripts here!
Posted 06 June 2009 - 08:34 PM
I'm going to dispair!
I was only asking for two COMPLETE scipts, not for fragments (where you decided what I need ...)
Today in Germany it is late enough.
So: Maybe I answer tomorrow. That depends on my feeling and my ToDo list ...
Peter
Posted 06 June 2009 - 08:40 PM
Posted 06 June 2009 - 08:40 PM
Sorry, You did not understand!It is only a little fragmented, the only thing the scripts are missing is the [MAIN] section aside from that everything else is there, these are very small scripts.
Posted 06 June 2009 - 08:48 PM
Posted 06 June 2009 - 09:25 PM
I am closing the other post as all the replys got off track....
12. SMILE! Life is tough, we all know that, when you enter this board, it will be appreciated that you leave your personal problems behind, asking and replyinq questions or however exchanging informations with a "positive" attitude, TAKE IT EASY and enjoy your stay here.
Posted 06 June 2009 - 09:43 PM
Posted 08 June 2009 - 06:49 AM
Posted 08 June 2009 - 07:24 AM
[Variables] %myVar%=BlaBla %yourVar%=HelloTo make clear: These are definitions. If the script changes the values, that will not appear in the [Variables] section.
AddVariables,<path to script1>,VariablesThat copies the Variables section's definitions of script1 into the variables space of script2, as if they would have been defined in [Variables] of script2.
Set,%WAIK%,%pFileBox1%,GLOBALThis will make %WAIK% available for all following scripts in the current build.
Set,%WAIK%,%pFileBox1%,PERMANENTThis will write %WAIK% into scripts.project and therefore be available allways.
IniWrite,"%ProjectDir%\script.project","Variables","#$pWAIK#$p","%pFileBox1%"
Posted 08 June 2009 - 10:23 PM
Posted 09 June 2009 - 06:55 AM
You are partly correct!Am i correct to assume that the help files are out of date as they do not have this information?
0 members, 0 guests, 0 anonymous users