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

In batch scripts based on JScript .NET generate .exe file near .bat file #4

Open
akolpakov opened this issue Jul 7, 2016 · 1 comment

Comments

@akolpakov
Copy link

Lets concider FileTimeFilerJS.bat as example.

If I call it in different directories and call FileTimeFilerJS.bat by absolute path:

cd testdir1
/path/FileTimeFilerJS.bat . -hh -10
cd testdir2
/path/FileTimeFilerJS.bat . -hh -10

In each directory where I call it new unnecessary .exe file will be created.

My suggestion to avoid it is to create .exe file only in directory where FileTimeFilerJS.bat is located.

To do it enough just to replace:

"%~n0.exe"

To

"%~dp0%~n0.exe"

in all /hybrids/.net/*.bat files

If you agree, I can make a pull request.

@npocmaka
Copy link
Owner

npocmaka commented Jul 7, 2016

@akolpakov thanks for the note .WIll check this tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants