Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] General Discussion

Thread Tools Rate Thread Display Modes
Old 09-28-2009, 04:54 AM
isostar isostar is online now
Registered User
Join Date: 03-18-2003
Posts: 8
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("CURREN T_DIR", Shell.CurrentDirectory);

But that seems kind of unnecessary when it could be a standard macro.
Reply With Quote
Old 09-28-2009, 07:32 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 5,758
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").CurrentDirec tory]
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 07:39 PM.

Copyright 1999-2019 Kinook Software, Inc.