-----Original Message-----
From: DJB [mailto:[EMAIL PROTECTED]
Sent: Friday, June 18, 2004 2:59 PM
...
If
(validpath("F:\*"), (Run F: Drive sync))
__________________________________
Unless this is some novel undocumented IF-syntax it's so wrong I don't know
where to start.
1-The IF statement should be on one line:
if (validpath("f:\*"))
2-PPro commands can't be in parentheses and certainly not inside the IF
condition. That's where your "Run" command is in your example. So in effect
it's not a command but a condition - one that makes no sense, inside
misatched parentheses, and separated from the "validpath" condition by a
comma instead of a legal operator.
3-If it were a command it would have to be one line below the IF-statement
4-(Run F: Drive sync) is wrong in every possible way:
a) The Run function takes a PPro command list as an operand. You can't run
external commands with it and certainly not with anything like that syntax.
b) There are no Windows comands that start with a drive letter followed by a
space. If it's the GNU sync.exe that you're using then your command should
be sync.exe [OPTIONS].
c) The best way to run commands with arguments is (as Bruce explained
recently) with the DO() function, which is distinct from the DO in
IF-DO-ELSE-ENDIF. Otherwise a PPro function couldn't figure out which is the
command and which is the argument in your example.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/