Page 1 of 1

strsub is not working on Windows 7

Posted: 14 Sep 2011 23:04
by sireeshraju
Hi Experts,

I am facing an issue with strsub command in my batch file.When I am running the below command from the batch file :

Code: Select all

strsub -s -d *.sql #WWF_USER# current_user


I am getting the below message

'strsub' is not recognized as an internal or external command,
operable program or batch file.


What should I do to fix this. The same batch file is running fine on the Windows 2003 server.

Please let me know if there is any patch that I should apply to overcome this issue.

Note: I have cygwin and perl installed in my system.

Regards
Sireesh

Re: strsub is not working on Windows 7

Posted: 15 Sep 2011 12:54
by jcgriff2
Hi -

strsub is not a native Windows 7 command.

Does Server 2003 have Compaq Visual Fortran installed?

3rd line down - http://h21007.www2.hp.com/portal/downlo ... #old_notes

If strsub.exe is on your Windows 7 system, you need to add the path to the batch script or to the system environment variable.

Regards. . .

jcgriff2
MS MVP

Re: strsub is not working on Windows 7

Posted: 18 Sep 2011 00:06
by sireeshraju
Thanks griff for your reply. I was unable to find strsub.exe in my system. Can you please let me know the equivalent of strsub, which can be used to replace one string with another string in all the files in a specified location Using Batch scripting.

Regards
Sireesh