I set the "Execute" to:
Command="%f", Working directory=%d
Then I opened C:\Test.bat, the code is @cd&pause, and press Ctrl+F5, but the result is C:\WINDOWS\System32, not C:\
"Start directory" wrong
- Author
- Message
-
Offline
- Posts: 147
- Joined: Fri Feb 08, 2008 6:41 pm
- Location: British Columbia, Canada
Bug?
tireless,
Your example is almost correct, but you are using Execute a little wrong. %F is a parameter to a command, not a command by itself. Try this:
Your example is almost correct, but you are using Execute a little wrong. %F is a parameter to a command, not a command by itself. Try this:
- keep Test.bat, as before, in C:\
- change execute setup:
Command= C:\test.bat
Working directory= %d - now open another file (anywhere) for editing and do Ctrl+F5. Execute should run the batch file (which displays the folder), but use the folder where the current file came from as its working directory.
-
Offline
- Posts: 27
- Joined: Tue Oct 02, 2007 2:27 am
I want execute current opened file, not a specify file, so I must use "%f". This problem is similar to:
If you double-click C:\WINDOWS\System32\cmd.exe, then
If you double-click C:\WINDOWS\System32\cmd.exe, then
This is not a big problem, I can put .bat file not in the drive root, that's ok.Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\WINDOWS\system32>d:
D:\>c:
C:\WINDOWS\system32>