to create and rate content, and to follow, bookmark, and share content with other members.
Question asked by
on May 31, 2009
on Jun 1, 2009 by ELSES
Show 0 Likes
I would like to ask if there is any built-in function or statement in ICCAP which could create a folder in file-path I specified. The version I
used now is 2006B. THank you.
No one else has this question
Mark as assumed answered
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Jun 1, 2009 12:12 PM
There is a way to do this via the system$ command.
In an IC-CAP macro or transform, system$() is a command which accesses and runs in the shell environment. For example:
1. print system$("whoami")
will print the user name to IC-CAP Status window
2. x=system$("echo $HOME")
print "Home is defined as ",x
will print out "Home is defined as " $HOME to the
IC-CAP Status window
3. print system$("rsh remotemachine date")
will print out result of date command on remote machine named remotemachine
In regard to creating directories, one can do something like this:
print system$("dir C:/tmp") !list dir
x=system$("mkdir C:/tmp/test_mkdir") ! do mkdir
print system$("dir C:/tmp/test_mkdir")!check exists
print system$("ls /tmp") ! assuming /tmp exists
print system$("ls /tmp/my_tmp_dir")
The basic idea is that via the system$() command one can access the system environment and return that information into the IC-CAP environment.
Hope this helps.
Show 1 Like
Retrieving data ...
Help : new to VEE
Copy from[vrf]: VEEOS R1 ready for Users
Testexec 7.1.x under W7 only enables 1 core, but the PC has 4 availables, how i could enable?