Search found 8 matches

by pe.ft
25 Sep 2010 12:25
Forum: DOS Batch Forum
Topic: Special char in string
Replies: 16
Views: 16905

Re: Special char in string

No need to get nasty. It depends on what you're doing, but such things may make a difference when processing large amounts of data. For example, using find/findstr to find a substring in a single line must be around a hundred times slower than doing a native substring replace and comparison. you ar...
by pe.ft
25 Sep 2010 06:27
Forum: DOS Batch Forum
Topic: Special char in string
Replies: 16
Views: 16905

Re: Special char in string

orange_batch wrote:Trading performance for convenience? :?


lol, put more coal inside your steam-engine computer
by pe.ft
23 Sep 2010 21:02
Forum: DOS Batch Forum
Topic: Special char in string
Replies: 16
Views: 16905

Re: Special char in string

if you are only doing it interactively on the command line, why is it such a hassle to just cd /D J:\somethingelse ? If you are writing an automated script, eg in Perl, doing a chdir("J:\somewhereelse") will bring you to that directory in Perl and you can do whatever from that directory. ...
by pe.ft
23 Sep 2010 20:17
Forum: DOS Batch Forum
Topic: Special char in string
Replies: 16
Views: 16905

Re: Special char in string

@echo off :: Title: CDD :: Change Drive and Directory. :: WARNING: dont use setlocal/endlocal if u really want to change directory :: Use 'DOSKEY CD=CDD %*' to override bult-in CD :: Parse parameters if "%~1" equ "" goto :CDHome if /I "%~1" equ "/?" goto :Sho...
by pe.ft
23 Sep 2010 20:01
Forum: DOS Batch Forum
Topic: Special char in string
Replies: 16
Views: 16905

Re: Special char in string

changing directory in a command prompt (cmd.exe) window can be done only with a batch file, I say C:\somedir> dir ... the dir command output ... C:\somedir> myJavaScriptCD.js C:\somethingelse C:\somedir> myPerlCD.pl C:\somethingelse C:\somedir> myCPPCD.exe C:\somethingelse C:\somedir> myBatchCD.cmd ...
by pe.ft
23 Sep 2010 18:36
Forum: DOS Batch Forum
Topic: Special char in string
Replies: 16
Views: 16905

Re: Special char in string

I found a solution to my problem. My approach was and is wrong. Jeb, u are right: how to parse the string? And more, how to modify before executed? The source of my troubles was to overload internal commands (like CD, CLS, etc.). I coded a simple script to change directories called CDD, it primarily...
by pe.ft
23 Sep 2010 08:23
Forum: DOS Batch Forum
Topic: Special char in string
Replies: 16
Views: 16905

Re: Special char in string

You could read "The Secrets Behind Batch File Interpretation" http://www.lingubender.com/forum/viewtopic.php?f=12&t=615 I dont understand all the steps, but it's very intresting. Or the extended version at http://www.administrator.de/Die_Geheimnisse_des_Batch_Zeilen_Interpreters.html ...
by pe.ft
21 Sep 2010 14:30
Forum: DOS Batch Forum
Topic: Special char in string
Replies: 16
Views: 16905

Special char in string

Im trying to 'overload' the command line prompt primarily to customize command. The core of my script is the loop :CmdLoop call :ShowPrompt set /P "sCmd= " rem ParseCmd " %sCmd% " call ExecCmd " %sCmd% " set "sCmd= " goto :CmdLoop ExecCmd is a .cmd file to exe...