Search found 9 matches
- 01 Jul 2015 07:18
- Forum: DOS Batch Forum
- Topic: How to see the bat log file
- Replies: 20
- Views: 10663
Re: How to see the bat log file
option batch on option confirm off open m -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" cd /u01/EnvironmentStartup option transfer binary put -preservetime winscp.txt c:\ close exit As you were already told once, this is not a batch file. This is a script file fo...
- 30 Jun 2015 13:44
- Forum: DOS Batch Forum
- Topic: How to see the bat log file
- Replies: 20
- Views: 10663
Re: How to see the bat log file
foxidrive wrote:Remove the exit command and try it.
Tried that , its gives the following error message for each line in the script
'Option' is not recognized as an internal or external command, operable program or a batch file
I used the command at the command prompt:
start c:\test.bat
- 30 Jun 2015 13:40
- Forum: DOS Batch Forum
- Topic: How to see the bat log file
- Replies: 20
- Views: 10663
Re: How to see the bat log file
Can you please tell what it is? It is doing the sftp part correctly when executed as a bat file Are you sure it is doing that? Is there a batch file called open.bat or open.cmd somewhere? I don't know which tool you are using. Squashman indicates it is winscp. when i right click on it ot double cli...
- 30 Jun 2015 13:39
- Forum: DOS Batch Forum
- Topic: How to see the bat log file
- Replies: 20
- Views: 10663
Re: How to see the bat log file
Can you please tell what it is? It is doing the sftp part correctly when executed as a bat file Are you sure it is doing that? Is there a batch file called open.bat or open.cmd somewhere? I don't know which tool you are using. Squashman indicates it is winscp. when i right click on it ot double cli...
- 30 Jun 2015 13:32
- Forum: DOS Batch Forum
- Topic: How to see the bat log file
- Replies: 20
- Views: 10663
Re: How to see the bat log file
Thanks Foxidrive i did run it from the command prompt and it is doing the same, a window appears and disappears in a second. The exit command at the end is closing the cmd window, but it isn't a batch script. Can you please tell what it is? It is doing the sftp part correctly when executed as a bat...
- 30 Jun 2015 13:18
- Forum: DOS Batch Forum
- Topic: How to see the bat log file
- Replies: 20
- Views: 10663
Re: How to see the bat log file
If you copy and paste your code using the CODE tags in the forum editor, when you post, then we can see your batch file correctly. Squashman suggested that you launch the batch file from a cmd prompt - and that is the advice you should pay attention to because you will see the error messages. Thank...
- 30 Jun 2015 13:17
- Forum: DOS Batch Forum
- Topic: How to see the bat log file
- Replies: 20
- Views: 10663
Re: How to see the bat log file
option batch on
option confirm off
open sftp://username:pwd@server:22 -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
cd /u01/EnvironmentStartup
option transfer binary
put -preservetime winscp.txt c:\
close
exit
- 30 Jun 2015 12:13
- Forum: DOS Batch Forum
- Topic: How to see the bat log file
- Replies: 20
- Views: 10663
Re: How to see the bat log file
Thanks Squashman, The script is below script option batch on option confirm off open m -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" cd /u01/EnvironmentStartup option transfer binary put -preservetime winscp.txt c:\ close exit But when i use "*.txt" inst...
- 30 Jun 2015 08:50
- Forum: DOS Batch Forum
- Topic: How to see the bat log file
- Replies: 20
- Views: 10663
How to see the bat log file
Good Morning All, I created a bat file, the purpose is it uses the winscp script to copy a file from windows to unix. When i execute the bat file the window quikly appears and disappears and nothing happens. Can anyone please tell me the process to create a log file so that i can look into the error...