on 03-27-2015 7:18 PM
Does anybody have experience using the exec() function in BODS to execute commands like 'move', 'delete', and 'copy'? I am curious about what the flags parameter refers to (in bold below):
Syntax:
exec( [in] FileName As varchar, [in] Arguments As varchar, [in] Flags As int ) As varchar
The way I am using the command is as follows, I just don't know what I should use for the flag parameter:
exec('cmd','del [$GV_OUTBOUND_DIR]\\[$RAY_SALES_FILE])', ???)
I believe it is supposed to be an integer between 0 and 8, I'm just not sure what the different flags do. Any ideas?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use 8 as flag. Also encapsulate exec in print() to print return from command in trace log.
print ( exec( 'del', '[$GV_OUTBOUND_DIR]\\[$RAY_SALES_FILE]' , 8)) ;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.