Home » Developer & Programmer » Forms » running .bat file (Windows XP, Oracle Forms 10g, Windows server 2003)
running .bat file [message #588932] Sun, 30 June 2013 02:00 Go to next message
new_oracle2011
Messages: 174
Registered: March 2011
Location: Qatar
Senior Member
I am trying to shift a file from one folder to another folder through a .bat file from a 10g Form by using a HOST command. I have placed the .bat file in the Application Server.

comm_string :='auto_shift.bat '||:block97.filename;
	
host(comm_string, no_screen);
	
if not form_success then
 message('File not transfered');
end if;


here is the .bat file
@echo off

xcopy "F:\pdalib\Bank_Outbox\%1" "\\172.16.13.22\Files_To_Encrypt\" >> "F:\tt.txt"

exit;

But the file is not shifting..
Re: running .bat file [message #588949 is a reply to message #588932] Sun, 30 June 2013 16:14 Go to previous message
Littlefoot
Messages: 21806
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Does the BAT file do its job when you run it from the operating system's command prompt?

Remove NO_SCREEN so that you'd see what is going on.
Previous Topic: Getting date
Next Topic: Oracle Forms saving problem
Goto Forum:
  


Current Time: Fri Mar 29 00:12:36 CDT 2024