Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding sm69

Former Member
0 Likes
1,600

hai,

i have Ztesting.bat file in C:\winnt\system32 WINDOWS NT directory.

how to test in SM69 could you pls guide me.

i mean how to set this file in Command name and execute.

I tried executing it but it always execute in DIR_HOME directory why is it?

should i have to set any path change in parameter under R3.

ambichan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,210

Hi Ambi

I have used SM69 with the following settings:

Operating System : Windows NT (case sensitive)

Operating System Command : c:\usr\sap\test.cmd

Addition Parameters Allowed : ‘X’

This file test.cmd was on application server. Try putting your file on this path and do the needful also in SM69 and test.

Regards

Ashish Jain

ashishjain@ko-india.com

9 REPLIES 9
Read only

Former Member
0 Likes
1,210

Hi,

Is your batch file present on the Application Server ? Or is it present on your local PC ?

Regards,

Anand Mandalika.

Read only

0 Likes
1,210

hey

yes its in WINDOWS NT server local direcotry C:\winnt\system32

ie. Not in local PC.

ambichan

Message was edited by: ambi chan

Message was edited by: ambi chan

Read only

0 Likes
1,210

Hi,

Why don't you just specify the file name with the complete path? By default, the system look s to find the file in the DIR_HOME directory. If you want it to look at some where else for the file, then you should tell the system.

Give C:\winnt\system32\ztesting.bat in the field called <b>Operating system command</b> in SM69. That should work.

Regards,

Anand Mandalika.

Read only

Former Member
0 Likes
1,211

Hi Ambi

I have used SM69 with the following settings:

Operating System : Windows NT (case sensitive)

Operating System Command : c:\usr\sap\test.cmd

Addition Parameters Allowed : ‘X’

This file test.cmd was on application server. Try putting your file on this path and do the needful also in SM69 and test.

Regards

Ashish Jain

ashishjain@ko-india.com

Read only

0 Likes
1,210

hey guys,

Thanks for your reply.

I have set path as you people said and it gets executed command properly. but Actually problem here is.

I just had sample like this.

OS:Windows NT.

OS Command : c:\winnt\system32\ztesting.cmd

Inside Ztesting.cmd.

suppose i have "DIR" written in cmd file.

when i execute from SM49. I get directory listing of

DIR_HOME- instead of displaying list from C:\winnt\system32\ directory.

why is it?

how to make set to display the DIR listing of C:\winnt\system32. using my command.

ambichan.

Read only

0 Likes
1,210

Hi,

That is because the path you give is only the location of the file. The default is always DIR_HOME.

If you want the contents of the directory where the file is residing, you should put <b>DIR C:\winnt\system32</b> in your file.

Regards,

Anand Mandalika.

Read only

0 Likes
1,210

hey anand,

Thanks for your reply.

yes it works out.great.

i have last question on this.

1-if i want to list of my local PC directory. how to make setting.

2-What does \C means in \C DIR....

ambichan

Read only

0 Likes
1,210

Hi,

1. It is like asking If I want to edit a word document, how can I do it from SAP? Just kidding... I don't think you can do this. The external OS commands are simply not meant for such a thing.

2. It is not \c. It is /c. This is a windows related question. Just search for DIR in windows, you will get all the other options as well. Or at your windows command prompt, just type <b>DIR /?</b>

Regards,

Anand Madnalika.

Read only

0 Likes
1,210

ok thanks anand.