Virtual folders for batches - execution directory
Started by Matthias Reissmann


Rate this topic
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


5 posts in this topic
Dracula
Senior Member
****


0
407 posts 28 threads Joined: Dec 2002
09-13-2004, 04:33 AM -
#4
Aah, my mistake, you already mentioned the shortcuts in your opening post... :0
I think I now see what you mean. I created a batch file "C:\4NT\cwd.bat", which simply displays the work (startup) directory:
Code:
@echo off
cd
pause >nul
If I double click on it in explorer, it says C:\4NT
If I drag it to TLB in order create a shortcut, and then launch it from there, it says C:\4NT
If I create a virtual folder to C:\4NT and then run the batch file from the virtual folder, it says C:\Documents and Settings\username

So the work directory is indeed incorrect when launching programs from a virtual folder. But I think this is quite easy to fix, since it's probably just one ShellExecuteEx statement with a missing parameter...
Windows 7, IE 9.0, Shell 6.0.6000.16386, TLB 4.2.3 beta


Messages In This Thread
[No subject] - by Matthias Reissmann - 09-13-2004, 12:49 AM
[No subject] - by Dracula - 09-13-2004, 03:25 AM
[No subject] - by Matthias Reissmann - 09-13-2004, 03:52 AM
[No subject] - by Dracula - 09-13-2004, 04:33 AM
[No subject] - by Matthias Reissmann - 09-13-2004, 04:47 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)