strsub is not working on Windows 7

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
sireeshraju
Posts: 2
Joined: 14 Sep 2011 22:52

strsub is not working on Windows 7

#1 Post by sireeshraju » 14 Sep 2011 23:04

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

jcgriff2
Posts: 1
Joined: 03 Sep 2011 06:46
Location: New Jersey, USA
Contact:

Re: strsub is not working on Windows 7

#2 Post by jcgriff2 » 15 Sep 2011 12:54

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

sireeshraju
Posts: 2
Joined: 14 Sep 2011 22:52

Re: strsub is not working on Windows 7

#3 Post by sireeshraju » 18 Sep 2011 00:06

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

Post Reply