Re: [Freedos-user] New Version of DOSUTILS
>> I'm not quite sure whether i got your point correctly, but have you had >> a look at FNTOOL? It's kind of a superset of tools like "dirname" and >> "basename". E.g. "FNTOOL /B C:\TEST\REMASTER\DOS" would return just "DOS". >> >> And, as often, there is more than one way to get a job done. An alternative >> could be like this: >> "cd | tr '\\' '/' | pipeset /C: = unix-path". >> All three utilities: "FNTOOL", "TR" and "PIPESET" are part of the DOSUTILS >> package. >> >> > > Looks like you're right, FNTOOL /B %_CWD% works like a charm. > Another issue solved after all then despite flaky testing on my side a > while ago. Have you also tried the other alternative? It should do the job in a single line. -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] New Version of DOSUTILS
Quoting wiwa64 : > >> I also noted NTOOLS in a seperate package. As it happens, I know the >> guy who wrote netcat on which it's modelled. This is very nice to have >> for DOS. > Actually there is more than one implementation of netcat for DOS. > Michael Brutmans mtcp package also comes with an nc clone for DOS. His > version has less features though. First, the similarities: - Both use TCP/IP sockets. Both can listen (server) or create sockets (client) - Both can use stdin and stdout or work interactively. There are a few key differences: - the mTCP version is a more "pure" version of netcat; it does not include the ability to run an arbitrary command, insert an initial string into the input ahead of stdin, format the output, etc. - the mTCP version provides much tighter control over how the connection is terminated. (How long to wait, wait for the other side to initiate the close, etc.) - mTCP provides a dedicated Telnet client for use with telnet servers, complete with ANSI emulation, backscroll, etc. - the mTCP version does not include the DHCP client code; DHCP configuration is in a separate program. (All of the mTCP programs use the same DHCP client code in that program.) - the mTCP version is not dependent on a TCP library that has not been maintained in years. I'm still actively working on performance and features, so if you need something either in the application or the library let me know. The next version of the mTCP version of netcat will include UDP support. That will make it pretty much complete as far as a network diagnostic tool. (For port scanning, echoing, etc. separate applications really should be used.) Mike -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] New Version of DOSUTILS
> I also noted NTOOLS in a seperate package. As it happens, I know the > guy who wrote netcat on which it's modelled. This is very nice to have > for DOS. Actually there is more than one implementation of netcat for DOS. Michael Brutmans mtcp package also comes with an nc clone for DOS. His version has less features though. -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] New Version of DOSUTILS
Op 4-1-2013 1:08, wiwa64 schreef: > Please feel free to explore the various (in total seventeen) utilities > in the package, which can be downloaded from here: > http://www.bttr-software.de/products/jhoffmann/, to see whether some of > them might possibly be useful. Further details are given in the two > instructon files dosutils.txt and form.txt which are also part of the > package. Thanks for the update. I remember one of your tools being able to show the directory path, but not in separate pieces ( I wanted to convert path to Linux-style to satisfy Syslinux.cfg requirements for the Syslinux installer). Preferably just the directory name, without any - filename - directory/directories above it - slashes/backslashes - colon - driveletter so C:\TEST\REMASTER\DOS\ would return DOS if executed from that directory. If going one dir up, it would return the string REMASTER (etc..). End result is something alike: @echo off set /E output=tool.exe /basename set string=%output% cd.. set /E output=tool.exe /basename set string=%output%/%string% set string=/%string% echo Unix-path for %_CWD% is %string% (without driveletter) Think it was the basename tool. Bernd -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] New Version of DOSUTILS
On Thu, Jan 3, 2013 at 7:08 PM, wiwa64 wrote: > The new utility INLINE allows to place multi-line data, that is to be > fed as input into another program via stdin, directly within the > batchfile from which the program is invoked. Users who are familiar with > shell programming under UNIX, might recognize a certain similarity with > so called 'here documents' serving the same purpose though they are > implemented differently. "here documents" for DOS. A. > Please feel free to explore the various (in total seventeen) utilities > in the package, which can be downloaded from here: > http://www.bttr-software.de/products/jhoffmann/, to see whether some of > them might possibly be useful. Further details are given in the two > instructon files dosutils.txt and form.txt which are also part of the > package. I also noted NTOOLS in a seperate package. As it happens, I know the guy who wrote netcat on which it's modelled. This is very nice to have for DOS. Thank you! __ Dennis https://plus.google.com/u/0/105128793974319004519 -- Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812 ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user