Access files on website (http) similar to ftp - file

We have an issue with a FTP site that fails intermittently. Upon notification that a connection cannot be established we manually log into a website and upload our file. We have no idea why the FTP site fails and it is not under our control. This community has some good ideas so I am asking if a website (http) can be logged into programmatically and files can be uploaded to or downloaded from that website in a manner similar to ftp. No API available from this vendor.

You did not give specifics about your environment or how you wish to implement your uploads. There are many tools available on most platforms to programmatically upload files, so I'll just mention a few general tips.
There is a very useful Linux GNU shell utility, wget: https://www.gnu.org/software/wget/, that has been available for a very long time. This utility has a command line interface which can easily be accessed programmatically from scripts using exec or other shell commands, to upload files via HTTP and FTP.
It's not as common, but there is a corresponding utility, wput: http://wput.sourceforge.net/, that is used to upload files.
If you only have access to Windows computers, a similar functionality is available from the Windows PowerShell (it's built in). Here is an old SO post with examples of how to do it with PowerShell: How to script FTP upload and download?
Another Windows based utility is WINSCP: https://winscp.net/eng/docs/guide_automation.
In answer to your question, these utilities wget/wput, PowerShell, and WINSCP, could be used to programmatically upload and download files to your FTP site. You could write (or have written) a custom script that automatically retries in the event that you get failures from your flaky FTP site.

Related

Can I batch file upload videos on YouTube?

Recently, I've found myself doing a very long but repeated process of editing and uploading certain kind of videos online on YouTube. My friend suggested to write a batch file or a script as he said to help with the process, so I've decided to learn how to write it.
But first is that even possible? to write script file that open certain programs and do certain processes. And might open browser and click on certain buttons and make that?
Check out Youtube-upload
It's a command-line Python script that uploads videos to YouTube. It should work on any platform (OS X, Windows, etc) that runs Python. It is using the YouTube API V3.
If you are looking to automate the operation of Windows software. Look into AutoIt which provides a GUI and a simple basic-like scripting language to do so.

Editing Google Docs Files Through Batch File

Is it possible to edit a text file (*.txt) that's public for editing in google Docs through Cmd or a batch file. Or Can I use the FTP Command? It can even be done by uploading and downloading the same file (Download, Edit, Upload).
I have made the Document That I want to add text to and re-upload it per say. https://drive.google.com/file/d/0B0qbLnCcNlcMQ1VSQkFoSmJxc1k/view?usp=sharing
As well as the ftp side goes, afaik google docs don't support ftp access
But a 3rd party program called Cyberduck comes handy at this point
So passing some arguments to cyberduck might do the trick
But if you also want to access a 3rd party ftp server
than it is also possible using the ftp command

make a exe to be downloaded through website

We have a exe (executable) file link on our website which a user has to download.
BUt, in most of places exe downloading is blocked. IS there any other better way except sharing it as a zip file?
The corporate standard for deployment is the MSI file (Windows Installer - check the link for details on the major advantages).
I am not sure how a direct download of an MSI in the last versions of browsers will behave since every new browser version tends to add new problems, but if you deliver an MSI file you will at least provide a product better suited for corporate deployment (so far as you follow best MSI practice).

Guidelines to follow when making your program Active Directory/Terminal Services compatible

Wondering if there's any guidelines that should be followed when writing an application that should work not only on a plain ol' non-networked computer but also on a computer/network that is setup with Active Directory (or some other directory service) and/or Terminal Services? Anything I should look out for, be aware of, etc?
Microsoft has renamed Terminal Services to 'Remote Desktop Services' so searching and looking around MSDN my not be as constructive using the old terminology.
I'd start having a look around Remote Desktop Services Programming Guidelines found here:
http://msdn.microsoft.com/en-us/library/aa383490(VS.85).aspx
On the AD site a starting point would be here:
[http://msdn.microsoft.com/en-us/library/ms682458(VS.85).aspx][2]
The most important things to be aware of:
On a Terminal Server users are not admins, they have no rights to:
Write in Program files folder
Register ActiveX controls
Write into (ini files) in Windows(\System32)
HKLM hive of the registry
Some other points:
- Certain API's like getting the Windows directory will return redirected results (in this case the windows subfolder of the homedrive) UNLESS you mark your executable as Terminal Server aware
- Your application must not rely on settings in HKCU that prevent startup when not present
- Multiple users might use your app concurrently so each user must be able to have their own settings (in HKCU)

Round trip editing of binary documents stored on a server

I'm looking to build some functionality for a content management system for the editing of files stored on the server.
I'd like to provide users the ability to easily download files locally to their computer, open the file for editing, and save it back to the server. The process should be as seamless as possible.
Here's the steps today:
Click the link to download the file (say a PSD) in a web browser
Save it to disk
Find the file, open it for editing in Photoshop
Make changes, save the file
Go back to the browser,navigate to the file that was downloaded.
Click "replace file"
Find the file, upload it back to the server.
Here's what I want:
Click the link to open the PSD file
File is downloaded, Photoshop launches
Make changes, save the file
File is uploaded back to server, replacing the original file
Those who have used Sharepoint know that this works (using WebDAV) but only with the Office applications (PPT, DOC, XLS). I'd like it to work with all file types.
This will take some kind of software to be installed locally - perhaps a separatly installed application with a mime type registered, a signed java applet, or a firefox extension.
This seems like a problem that should have been solved. Has anyone seen this done before?
Windows client OS has a WebDAV redirector and has had for a long time, so
a) you shouldnt need a client piece and b) it's not specific to Office files.
The fun bit is the server end, implementing a WebDAV server.
WebDAV isnt supported on client OSs like Vista (IIS5.1 has support, 6.0 doesnt), only on Servers (2K3, 2K8...)
There is goo/examples/frameworks (cant recall which from when I researched it) available for implementing a WebDAV server, but it requires a server OS [so I had to discount it as the host in my case could potentially have been Vista/7, not server/XP).
The site WebDAV Resources includes a link to at least one open-source server implementation. I haven't used this software, I'm just citing the reference.
It appears that Apache has deprecated or dropped support for server-side WebDAV since the Jakarta Slide project has been retired.

Resources