Search found 4 matches

by Rekrul
2022-Jan-01, 8:24 pm
Forum: Windows CMD Shell
Topic: Using the Windows port of SED?
Replies: 1
Views: 124

Using the Windows port of SED?

This page; http://gnuwin32.sourceforge.net/ Includes Windows ports of Linux utilities. I downloaded the Windows port of SED 4.2.1, however I literally can't get it to do anything. I have copied numerous examples off the net and even off the SED documentation page, but no matter what I try, all I get...
by Rekrul
2021-Nov-09, 9:54 pm
Forum: Windows CMD Shell
Topic: START Program.exe works, START path\Program.exe fails
Replies: 3
Views: 1675

Re: START Program.exe works, START path\Program.exe fails

You need to give the START command a title: start "anything you want" "c:\Program Files\Internet Download Accelerator\ida.exe" %URL% I always thought that adding a title was optional. To be honest, I don't know if I've ever tried to use Start with both a path and filename before...
by Rekrul
2021-Nov-08, 5:55 am
Forum: Windows CMD Shell
Topic: START Program.exe works, START path\Program.exe fails
Replies: 3
Views: 1675

START Program.exe works, START path\Program.exe fails

I use a program called Internet Download Accelerator. The main executable is named "ida.exe". It's installed in; c:\Program Files\Internet Download Accelerator\ It can be called from the command line, but for some reason, it doesn't seem to act like other programs. This works; "C:\Pro...
by Rekrul
2021-Nov-08, 2:08 am
Forum: Windows CMD Shell
Topic: Is it possible to use variables in a substring operation?
Replies: 1
Views: 1509

Is it possible to use variables in a substring operation?

I want to do something like this; set String=1234567890 set /p x=Number of desired characters? echo %String:~0,%x%% Where the substring operation would return however many characters the user enters. If they enter "5", they'd get "12345". I've tried it using Delayed Expansion and...