AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Start directory" wrong

 
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English)
View previous topic :: View next topic  
Author Message
tireless



Joined: 02 Oct 2007
Posts: 27

PostPosted: Wed May 20, 2009 1:25 pm    Post subject: "Start directory" wrong Reply with quote

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:\
Back to top
View user's profile Send private message MSN Messenger
Surveyor



Joined: 08 Feb 2008
Posts: 146
Location: British Columbia, Canada

PostPosted: Wed May 20, 2009 4:05 pm    Post subject: Bug? Reply with quote

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:

  1. keep Test.bat, as before, in C:\
  2. change execute setup:
    Command= C:\test.bat
    Working directory= %d
  3. 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.

Cheers!
Back to top
View user's profile Send private message Send e-mail
tireless



Joined: 02 Oct 2007
Posts: 27

PostPosted: Thu May 21, 2009 2:02 am    Post subject: Reply with quote

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

Quote:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32>d:

D:\>c:

C:\WINDOWS\system32>


This is not a big problem, I can put .bat file not in the drive root, that's ok.
Back to top
View user's profile Send private message MSN Messenger
Instructor
Site Admin


Joined: 06 Jul 2006
Posts: 5454

PostPosted: Thu May 21, 2009 2:29 pm    Post subject: Reply with quote

tireless
Command: %f
Working directory: %d\
Back to top
View user's profile Send private message Send e-mail
tireless



Joined: 02 Oct 2007
Posts: 27

PostPosted: Thu May 21, 2009 4:28 pm    Post subject: Reply with quote

Instructor wrote:
tireless
Command: %f
Working directory: %d\

Thanks Smile
Back to top
View user's profile Send private message MSN Messenger
tireless



Joined: 02 Oct 2007
Posts: 27

PostPosted: Wed Jun 10, 2009 9:52 am    Post subject: Reply with quote

Instructor wrote:
tireless
Command: %f
Working directory: %d\

Can't execute D:\(Test).bat. Change Command to "%f", can fix it.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AkelPad Forum Index -> Discussion (English) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group