Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Batchfiles are not executed from their storage directory #372

Closed
not-nef opened this issue Apr 9, 2022 · 4 comments
Closed

[BUG] Batchfiles are not executed from their storage directory #372

not-nef opened this issue Apr 9, 2022 · 4 comments
Assignees
Projects
Milestone

Comments

@not-nef
Copy link

not-nef commented Apr 9, 2022

Batchfiles are executed from the system tray menu executable directory and not from the path they are stored. Can you please fix that?

  • OS: Windows 11
  • 22000.556
@not-nef not-nef changed the title [BUG] [BUG] Batchfiles are not executed from their storage directory Apr 9, 2022
@Hofknecht
Copy link
Owner

@not-nef
Thank you for the feedback!

It seems it was correct in 1.019.3
2022-04-10 23_08_35-Window

but somehow i changed/removed working directory in
2022-04-10 23_08_49-Window

test script e.g.:

echo %~dp0
pause

results in:
2022-04-10 23_12_12-Window
(as you described => NOK)

when adjusting the line to this
2022-04-10 23_13_08-Window

then it works correct:
2022-04-10 23_14_03-Window

added it to my tests, so this should prevent that this happens again

in my tests i had another testcase related to working directory but seems to be wrong:

@rem test.bat
@echo off
echo %*
echo working directory: %cd%
PAUSE

now changed with version 1.2.9.3
Can you agree that it is working with changes from this commit?

@Hofknecht Hofknecht self-assigned this Apr 10, 2022
@Hofknecht Hofknecht added this to Analyze / Spec in STM 1.3.0 via automation Apr 10, 2022
@Hofknecht Hofknecht added this to the 1.3 milestone Apr 10, 2022
@not-nef
Copy link
Author

not-nef commented Apr 11, 2022

Uhhhhhhhhhhm... Sorry but i got a bit overwhelmed. So you want me to compile stm and verify it works?

@Hofknecht
Copy link
Owner

@not-nef
If you want to you can verify if it works correct in your test cases. Very good that you reported it, thanks for that.
It is now in testing and will be in the next release.

@not-nef
Copy link
Author

not-nef commented Apr 12, 2022

Ok

STM 1.3.0 automation moved this from Analyze / Spec to Closed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
STM 1.3.0
  
Closed
Development

No branches or pull requests

2 participants