Operable program or batch file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
htbsupport
Posts: 3
Joined: 17 Aug 2010 21:55

Operable program or batch file

#1 Post by htbsupport » 18 Aug 2010 01:38

Hi,

I get the error '"type e:\test.txt|find /n /v """' is not recognized as an internal or external command, operable program or batch file.

But, it works fine, if the SQL User has sysadmin privilege or if executed via windows authentication from SQL management studio.

Any advice on this will be appropriated.

Thanks,
Austin

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Operable program or batch file

#2 Post by aGerman » 18 Aug 2010 08:16

What exactly is the command line that causes this error? And why did you use TYPE to pipe the output to FIND? You can use FIND directly.

Regards
aGerman

htbsupport
Posts: 3
Joined: 17 Aug 2010 21:55

Re: Operable program or batch file

#3 Post by htbsupport » 18 Aug 2010 23:21

Hello aGerman,

1'st of all thanks for your response.

The command is as follow :-

command exec p_fncDeleteFTPFilename 'filename.txt', 'filename2.txt'

Can you advice anything on this ?

Regards,
Austin

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: Operable program or batch file

#4 Post by aGerman » 19 Aug 2010 02:32

Have a look at your error message. This line can't be the reason, because there is no "type" or "find" command and it seems not to be a batch code.

Regards
aGerman

htbsupport
Posts: 3
Joined: 17 Aug 2010 21:55

Re: Operable program or batch file

#5 Post by htbsupport » 19 Aug 2010 21:50

The Interesting part is that it works fine when we login as windows administrator or if the user as sysadmin previlage.

orange_batch
Expert
Posts: 442
Joined: 01 Aug 2010 17:13
Location: Canadian Pacific
Contact:

Re: Operable program or batch file

#6 Post by orange_batch » 19 Aug 2010 23:50

Command prompt accesses the file system, so it sounds like an internal privilege issue. You might have to figure this one out yourself...

Post Reply