Home » Developer & Programmer » Forms » How to create new Folder in run time (forms 6i, DB-9i, os- XP)
How to create new Folder in run time [message #435585] Wed, 16 December 2009 23:50 Go to next message
ssliyanage
Messages: 6
Registered: December 2009
Location: Sri Lanka
Junior Member

Hi,

I just want to create new folder in runtime,if u know pls send me the code

thanks,
sameera

[Updated on: Thu, 17 December 2009 00:08]

Report message to a moderator

Re: How to create new Folder in run time [message #435590 is a reply to message #435585] Thu, 17 December 2009 00:26 Go to previous messageGo to next message
Littlefoot
Messages: 20824
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Use HOST (or CLIENT_HOST) built-in.
Re: How to create new Folder in run time [message #435638 is a reply to message #435590] Thu, 17 December 2009 03:40 Go to previous messageGo to next message
ssliyanage
Messages: 6
Registered: December 2009
Location: Sri Lanka
Junior Member

thanks u reply me,

Is this HOST OR CLIENT_HOST pll? and i should attach this library? is it?

thanks

sameera
Re: How to create new Folder in run time [message #435643 is a reply to message #435638] Thu, 17 December 2009 03:51 Go to previous messageGo to next message
Littlefoot
Messages: 20824
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
HOST is Forms built-in procedure, not a PLL.
Re: How to create new Folder in run time [message #435647 is a reply to message #435643] Thu, 17 December 2009 04:05 Go to previous messageGo to next message
ssliyanage
Messages: 6
Registered: December 2009
Location: Sri Lanka
Junior Member

yes, i found that procedure. but i think HOST can be used to execute command. so can u pls tell me what is the command to create new folder in windows.
Re: How to create new Folder in run time [message #435648 is a reply to message #435647] Thu, 17 December 2009 04:18 Go to previous messageGo to next message
Littlefoot
Messages: 20824
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
MKDIR
icon1.gif  Re: How to create new Folder in run time [message #435653 is a reply to message #435648] Thu, 17 December 2009 04:50 Go to previous messageGo to next message
ssliyanage
Messages: 6
Registered: December 2009
Location: Sri Lanka
Junior Member

thanks u so much to reply me. this is my code

declare
a PLS_INTEGER;
begin

HOST('C:\MKDIR',NO_PROMPT);
exception
when others then
display_smsg(sqlerrm);
end;


but it doesn't give any error. but i cant find the new folders in C Drive also.

can u pls tell me how do i give the path and system command
icon14.gif  Re: How to create new Folder in run time [message #435663 is a reply to message #435653] Thu, 17 December 2009 05:05 Go to previous messageGo to next message
ssliyanage
Messages: 6
Registered: December 2009
Location: Sri Lanka
Junior Member

THANK YOU SO MUCH TO HELP ME...
IT'S NOW WORKING
THIS IS THE CORRECT CODE

HOST('MKDIR D:\FOLDER',NO_PROMPT);

Re: How to create new Folder in run time [message #435675 is a reply to message #435663] Thu, 17 December 2009 05:36 Go to previous message
Littlefoot
Messages: 20824
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Oh well, GUI makes things easier, but only if you know how to do the job from command line as well. Otherwise, it takes hours.
Previous Topic: 'bad bind variable' in form 6i
Next Topic: Getting around the restricted built-ins
Goto Forum:
  


Current Time: Sat Sep 24 18:03:39 CDT 2016

Total time taken to generate the page: 0.09527 seconds