WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Winbatch Studio
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

DirGet Returns the \Winbatch\System Subdirectory as Current Working Directory

Keywords: 	 cwd  current working directory

If you have a WBT file on a mapped network drive, then launch Winbatch Studio by clicking on the Start Button|Programs|Winbatch|Winbatch Studio, then go into the File menu and find your network file, then add a breakpoint to the file and step through it, you'll notice that the DirGet() function returns the path of where Winbatch Studio is located on your local system.

Then if you change the directory in your script with a DirGet() and run the script again within the same session, you'll notice that the current working directory has been changed to that default cwd next time around as well, when you run the script in this session, until you close out Winbatch Studio.

The script is getting the default from WinBatch Studio, and WinBatch Studio's working directory can be modified by running a script that has a DirChange (and also other functions) in it.

It's best to not assume anything about working directories. If it matters, set it to what you need it to be.


Article ID:   W14755
Filename:   DirGet returning Winbatch System Subdir.txt
File Created: 2000:08:07:17:06:22
Last Updated: 2000:08:07:17:06:22