04-28-2005 6:17 AM
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.
04-28-2005 11:44 AM
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
04-28-2005 6:43 AM
Hi,
Is your batch file present on the Application Server ? Or is it present on your local PC ?
Regards,
Anand Mandalika.
04-28-2005 7:10 AM
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
04-28-2005 8:04 AM
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.
04-28-2005 11:44 AM
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
04-29-2005 9:57 AM
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.
04-29-2005 10:11 AM
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.
04-29-2005 10:51 AM
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
04-29-2005 11:03 AM
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.
04-29-2005 11:09 AM