Socket download file

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "This command is a Socket Command. This commands allows you to download a file using the cookies in the socket container. The command works within the [[so...")
 
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
This command is a [[Socket Commands|Socket Command]]. This commands allows you to download a file using the cookies in the socket container.
+
This command is a [[Socket Commands|Socket Command]]. This commands allows you to download a file using the url provided.
  
 
The command works within the [[socket container]] command.
 
The command works within the [[socket container]] command.
 +
 +
'''Url:''' Refers to the url the file will be downloaded from
 +
 +
<pre>http://ubotstudio.com/blog/wp-content/uploads/2013/09/Spin.png</pre>
 +
 +
'''File:''' Refers to the filepath of the location the file will be downloaded to, complete with the file name and file extension.
 +
 +
<pre>C:\Users\JohnDoe\Pictures\newpicture.jpg</pre>
 +
 +
 +
== Example ==
 +
 +
<pre>
 +
 +
plugin command("SocketCommands.dll", "socket container") {
 +
    plugin command("SocketCommands.dll", "socket download file", "http://ubotstudio.com/blog/wp-content/uploads/2013/09/Spin.png", "C:\\Users\\JohnDoe\\Pictures\\newpicture.jpg")
 +
}
 +
 +
</pre>
 +
 +
 +
Running the command will download the file to the designated location. The process is extremely quick and there will be no changes in the browser to indicate that the file has been downloaded.

Latest revision as of 21:18, 6 February 2017

This command is a Socket Command. This commands allows you to download a file using the url provided.

The command works within the socket container command.

Url: Refers to the url the file will be downloaded from

http://ubotstudio.com/blog/wp-content/uploads/2013/09/Spin.png

File: Refers to the filepath of the location the file will be downloaded to, complete with the file name and file extension.

C:\Users\JohnDoe\Pictures\newpicture.jpg


[edit] Example


plugin command("SocketCommands.dll", "socket container") {
    plugin command("SocketCommands.dll", "socket download file", "http://ubotstudio.com/blog/wp-content/uploads/2013/09/Spin.png", "C:\\Users\\JohnDoe\\Pictures\\newpicture.jpg")
}


Running the command will download the file to the designated location. The process is extremely quick and there will be no changes in the browser to indicate that the file has been downloaded.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox