[RESOLVED] ??? How to make a Folder on the Webpage's Server, on cue of a VB6 COM Application ???
Hello.
I am writing a Web Application that works both online and also offline material, is sent to the Application, that works like this. I am going to send a TextData File to the Remote Internet Server, when and on cue, of the Application to send and as to where to put it in the "Username" Folder. I know this is possible, because every Internet Application does this up to some kind of standard, as such and the like...
PS: If the Application's ComboBox says that Africa or Asia, then place it into that sub folder, which is found inside the Username master folder and then make other sub folders, after that like /Media or /Attachments, etc. If you get my drift??? Please ask me if you don't understand me, on any kind of level???
!! Thanks in advance !!
Re: ??? How to make a Folder on the Webpage's Server, on cue of a VB6 COM Application
I don't think it's a good idea to create folders and sub folders in your webserver via coding.
Instead, why not use a db to store the data ?
Any particular reason to create folders ? Is it your server(your own machine at home or work) or on a shared/dedicated hosting ? If it is the server in which your personal site is running now, then it is a free hosting service and I don't think they would be providing permissions for such kind of things.
:wave:
Re: ??? How to make a Folder on the Webpage's Server, on cue of a VB6 COM Application
-- That means that I must be able to read up on the rules of the Web Sever...
Re: ??? How to make a Folder on the Webpage's Server, on cue of a VB6 COM Application
Answer to Post #2: Yes, my Web Hosting Remote Server, does allow members to access and then get their clients to upload data, like folders and files to their web space. But then that does take down the web master's web space and also the month allowance of the bandwidth, as well...
So then we can then proceed with the file and folder uploads. I prefer to use files, instea of working with a database, because there is a total file size limit of twenty megabytes, in total and that cannot be changed to be more, than that for any reason. So then a data base in then totally out of the question, for my type of web space. That also means that I cannot have a zip file, of more than that as stated above in this post, as well...
Re: ??? How to make a Folder on the Webpage's Server, on cue of a VB6 COM Application
Another way would be to use a third party file hosting service's API (might be available for free, I don't know). Then code it in such a way that(using a server side scripting language), whatever files your users are sending you they will be uploaded to your account with this file hosting service. So, they are stored in another server. You could also keep track of the files or maybe organize it by making use of a db.
:wave:
Re: ??? How to make a Folder on the Webpage's Server, on cue of a VB6 COM Application
But still, that have the Source Code for the uploading of the Application Data, but then that would be able to only be patched into the Application. I have heard that it works with the MkDir, which is for making the Folders. Then in return of the Files being uploaded then that means that I must be able to have the Winsock or rather more over the iNet control to upload and either download the Files, at best...
Re: ??? How to make a Folder on the Webpage's Server, on cue of a VB6 COM Application
Today, Perth Time: I was able to find the Source Code for the right execution of the process. But before I am going to try the Source Code, I want someone to help me to look over it with a fine tooth combe.
So then here it is!!
However this example, that I have been able to post on the Thread, is only able to use the Microsft Internet Transfer Control, that comes with Visual Basic COM...
Code:
Inet1.Execute , "PUT c:lol.txt public_html/index/micke/lol.txt"
Do While Inet1.StillExecuting
DoEvents
Loop
!! Thanks in advance !!