Re: .bat files?
Posted: 06 Feb 2013 13:05
Doesn't work here either...
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
Code: Select all
"Run in Native CMD" bat>%windir%\SysNative\cmd.exehttp://support.microsoft.com/kb/978779/de ---- german, but with pituresSteylor wrote:It says : 'telnet' is not a recognized command.
I'm using Win7 64bit
To install Telnet Client on Windows 7 or Windows Vista
Click Start, and then click Control Panel.
On the Control Panel Home page, click Programs.
In the Programs and Features section, click Turn Windows features on or off.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
In the Windows Features list, select Telnet Client, and then click OK.
Stefan wrote:http://support.microsoft.com/kb/978779/de ---- german, but with pituresSteylor wrote:It says : 'telnet' is not a recognized command.
I'm using Win7 64bit
http://technet.microsoft.com/en-us/libr ... stallVistaTo install Telnet Client on Windows 7 or Windows Vista
Click Start, and then click Control Panel.
On the Control Panel Home page, click Programs.
In the Programs and Features section, click Turn Windows features on or off.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
In the Windows Features list, select Telnet Client, and then click OK.
HTH?
-
Sorry - TDNHStefan wrote: HTH?
-
Steylor wrote:If I add the string to custom file association, when I click on the .bat file it opens in a dos window the directory containing the file but it doesn't execute it.
Code: Select all
"Run in Native CMD|C:\Windows\SysNative\cmd.exe" bat>::OpenWith("""%windir%\SysNative\cmd.exe"" /C <items>", 'm');XYplorer allows you to open a command prompt or execute commands directly from the address bar by using the prefix "!" and "!!". The Template option I pointed you to changes which application XY uses to execute those commands.Steylor wrote:This one ""You might also want to set your Tools > Configuration > Templates > Command Line Interpreter to the same path so that "!" and "!!" from the address bar use the native command prompt." I'm not sure how to do it.
I put there
c:\windows\SysNative\cmd.exe
But it doesn't seem to change anything, still says "telnet is not a recognized command etc.".
Good idea, and yes, there was a bug with icons in PFA menu.TheQwerty wrote:Don, maybe you could add an XY only %nativewinsysdir% which would return the System32 path on 32-bit Windows and SysNative on 64-bit? That would provide a means of making this a portable solution.
Code: Select all
"Run in Native CMD|%winsysnative%\cmd.exe" bat>::OpenWith("""%winsysnative%\cmd.exe"" /C <items>", 'm');We can help demystify this for you.Steylor wrote:I don't get all of it (/C <items>", 'm'?????????) , but I get how it works.
Breaking this down a little more...TheQwerty wrote:::OpenWith("""%windir%\SysNative\cmd.exe"" /C <items>", 'm'); This is a script that will open the selected items using a separate command prompt for each one.
Code: Select all
"""%windir%\SysNative\cmd.exe"" /C <items>"Code: Select all
"%windir%\SysNative\cmd.exe" /C <items>Am I the only one, where two selected .bat files are executed two times (resulting in 4 cmd windows)?"Run in Native CMD|%winsysnative%\cmd.exe" bat>::OpenWith("""%winsysnative%\cmd.exe"" /C <items>", 'm');
With multiple files it depends on how you open it. File > Open Selected Items triggers the script for each file and opens n-squared times.highend wrote:Am I the only one, where two selected .bat files are executed two times (resulting in 4 cmd windows)?"Run in Native CMD|%winsysnative%\cmd.exe" bat>::OpenWith("""%winsysnative%\cmd.exe"" /C <items>", 'm');
Ofc with the newest beta release...
Code: Select all
"Run in Native CMD|%winsysnative%\cmd.exe" bat>"%winsysnative%\cmd.exe" /C