Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Current working directory (https://www.kinook.com/Forum/showthread.php?t=4183)

isostar 09-28-2009 03:54 AM

Current working directory
 
How do you get the current working directory in a build script?
I have previously used a script to do this:

var Shell = WScript.CreateObject("WScript.Shell");
Application.Macros(vbldMacroTemporary).Add("CURRENT_DIR", Shell.CurrentDirectory);

But that seems kind of unnecessary when it could be a standard macro.

kinook 09-28-2009 06:32 AM

There isn't a predefined macro with the current directory value. Typically, using relative paths will automatically operate from the current directory. You could use this as the value of a CURRENT_DIR project or global macro:

[WScript.CreateObject("WScript.Shell").CurrentDirectory]


All times are GMT -5. The time now is 09:17 PM.


Copyright © 1999-2023 Kinook Software, Inc.