PDA

View Full Version : Making a Directory



mirosh82
09-28-2006, 10:50 AM
Hello,

Is there any way to create a directory in PV-WAVE. For example, say my input file is c:\vni\wave\lib\mycode\FileName.txt. I want all of my output to be placed in c:\vbi\wave\lib\mycode\FileNameOutputDirectory\. Can I do this from within PV-WAVE? In other words, can PV-WAVE create the directory FileNameOutputDirectory?

Thanks,
Mike

brian
09-28-2006, 04:11 PM
Hello Mike,

You can try the following. This expects the full path as the argument.

ex.


mkdir, 'C:\VNI\zzz'




PRO MKDIR, dir
IF !Version.OS EQ 'Windows-NT' THEN BEGIN
dirSep = '\'
dir = STRSUBST(STRTRIM(STRCOMPRESS(STRSUBST(dir,"\\\\"," ", /Global)), 2), " ", dirSep, /Global)
ENDIF
SPAWN, "mkdir, " + dir
END


Hope this helps,

brian