.bat files?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Steylor
Posts: 12
Joined: 06 Feb 2013 10:10

.bat files?

Post by Steylor »

Hello everybody, I'm trying this software and so far I love it, given the really annoying thing that it doesn't support MTP :( But I saw in the roadmap it will be implemented.
The one thing that really bugs me is the fact that I'm not able to run .bat files.
I have lot of .bat as simple as "telnet xx.xx.xx.xx" to access my customers' routers but when I run one of those a dos window just pop up and close istantly.
I use them A LOT, so this really is a deal breaker for me.
I looked around the configuration and around the forum, but I couldn't find a solution , which I'm sure will be as easy as this question is dumb :)
To me this software beats by far the other file managers I've tried, but without this option to me is almost useless, can anyone help me with this?
Thank you very much for your help

Stefano

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: .bat files?

Post by Marco »

Could you edit one of those bat's as

Code: Select all

telnet xxx.xxx.xxx.xxx
pause
and tell us what the command prompt says?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Steylor
Posts: 12
Joined: 06 Feb 2013 10:10

Re: .bat files?

Post by Steylor »

Good tip, now I can see the error.
It says : 'telnet' is not a recognized command.
Like it doesn't now where to find it.
I guess there's a place somewhere in XYplorer where I should insert the "OS system path" or something like that?

I'm using Win7 64bit

Thank you very much

highend
Posts: 14956
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: .bat files?

Post by highend »

You didn't "install" telnet...

Open a command prompt with admin rights and execute:

Code: Select all

dism /Online /Enable-Feature /FeatureName:"TelnetClient"
One of my scripts helped you out? Please donate via Paypal

Steylor
Posts: 12
Joined: 06 Feb 2013 10:10

Re: .bat files?

Post by Steylor »

Thanks, Highend, what do you mean "I didn't install telnet "?
These .bat files work with every other file manager I tried.....

Anyway, I tried the command you suggested , it says "operation completed succesfully", but still no .bat file opening in XYplorer.

Thank you very much

highend
Posts: 14956
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: .bat files?

Post by highend »

telnet' is not a recognized command
Which program displays this message, XYplorer? It doesn't know anything about what's inside! a .bat file.

Post a screenshot of that message please and a screenshot of the template section in your configuration (hit F9 and click on "Templates" on the left side).
One of my scripts helped you out? Please donate via Paypal

Steylor
Posts: 12
Joined: 06 Feb 2013 10:10

Re: .bat files?

Post by Steylor »

When I run the .bat, the dos window opens as it should but then it closes. Adding the command "pause" I could see the "telnet is not a recognized command" error, inside the dos window.
Here is a screenshot.
To see the attached files, you need to log into the forum.

highend
Posts: 14956
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: .bat files?

Post by highend »

open a cmd, enter:

Code: Select all

set
hit return.

Post a screenshot of that one and you forget to post a screenshot of the templates section in your XY config :)
One of my scripts helped you out? Please donate via Paypal

Steylor
Posts: 12
Joined: 06 Feb 2013 10:10

Re: .bat files?

Post by Steylor »

Here is the "set" screenshot. Maybe is something related to the "path" section? I'm launching the .bat files from the R:\ drive and it's not in the list. (Althouhg, as I said, they work in other file mangers).

About the "template" screenshot....I have no idea where to find it in XYplorer :oops:

Ah, ok, found it!

Hmmm...maybe it has something to do with the "command line interpreter" being empty ??

Thank you
To see the attached files, you need to log into the forum.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: .bat files?

Post by Marco »

Just to recap, double clicking said bat's from within XY doesn't work, but it does in other file managers?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Steylor
Posts: 12
Joined: 06 Feb 2013 10:10

Re: .bat files?

Post by Steylor »

Yes Marco, it does work in other file mangers. I don't think I can say which ones , can I? :wink:

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: .bat files?

Post by Marco »

Steylor wrote:Yes Marco, it does work in other file mangers. I don't think I can say which ones , can I? :wink:
Lol, we are not in China! XD
Are you on 64bit?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Steylor
Posts: 12
Joined: 06 Feb 2013 10:10

Re: .bat files?

Post by Steylor »

LOL
Yes I'm on 64bit

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: .bat files?

Post by Marco »

Then try setting this tweak to 1. Not guaranteed to work tho.

Code: Select all

; Tweak: set to 1 to disable WOW64 redirection on 64-bit platforms (NOT recommended with file operations!)
WOW64DisableRedirection=1
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Steylor
Posts: 12
Joined: 06 Feb 2013 10:10

Re: .bat files?

Post by Steylor »

Noooope! Doesn't work.

Btw I tried with a new .bat file with "ping xx.xx.xx.xx" or "tracert xx.xx.xx.xx" and they both worked fine.

Seems only telnet doesn't work! @@

Can you guys try to launch a .bat like "telnet xx.xx.xx.xx" and see what happen?
Just to see if it's my pc or it's xyplorer.

Thank you!

Post Reply