It depends on the drive you're on. You can't switch to a folder in other drive. So if when you run wine cmd you are not in the same drive as %TMP% is you will feel like it didn't work. Example: H:\>cd %TMP% H:\>c: C:\users\bruno\Temp>cd c:\ C:\>cd %TMP% C:\users\bruno\Temp> Is this your problem?