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
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" "\\\Files_To_Encrypt\" >> "F:\tt.txt"


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
Messages: 21146
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: Wed Aug 16 21:02:08 CDT 2017

Total time taken to generate the page: 0.06917 seconds