on my Windows laptop my company sets the environment variable CD to some directory and I can not change that. In a batch file I have to use the current working directory like

```
set current_dir=%cd%

```

Now the environment overrides the current directory. If I put the line

```
set cd=

```

in front the original variable would be deleted. Is there a safe way to get the current directory as the batch file might be used in other environments too?