uploading a file using cmd

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
hacxx
Posts: 57
Joined: 09 Apr 2015 13:18

uploading a file using cmd

#1 Post by hacxx » 09 Apr 2015 13:22

Hello,

What is the method to upload a file or info from a computer.
I tried FTP cmd but i was unsuccessful.

Any sugestions?

Thanks


foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: uploading a file using cmd

#3 Post by foxidrive » 09 Apr 2015 22:30

hacxx wrote:I tried FTP cmd but i was unsuccessful.


If you are unable to get the examples linked to work then describe what you are doing and what kind of failure you get - as the procedure you are following is involved in some way.

npocmaka_
Posts: 514
Joined: 24 Jun 2013 17:10
Location: Bulgaria
Contact:

Re: uploading a file using cmd

#4 Post by npocmaka_ » 10 Apr 2015 01:30

Are you able to upload file through your browser?May you'll need a http requests and the ftp wont help.

hacxx
Posts: 57
Joined: 09 Apr 2015 13:18

Re: uploading a file using cmd

#5 Post by hacxx » 19 Apr 2015 07:54

Thanks, it was a helpful CMD example but i got some errors.

lcd %temp%\file.txt -> It says "File not found" and it does exist in HD
cd home/www -> No such file or directory in server.

Also another question is it possible to add time stamp to the file?
Example: %temp%\file.txt when upload it will rename to file-19-04-2015.txt

Thanks

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: uploading a file using cmd

#6 Post by foxidrive » 21 Apr 2015 00:16

hacxx wrote:Thanks, it was a helpful CMD example but i got some errors.

lcd %temp%\file.txt -> It says "File not found" and it does exist in HD
cd home/www -> No such file or directory in server.

Also another question is it possible to add time stamp to the file?
Example: %temp%\file.txt when upload it will rename to file-19-04-2015.txt

Thanks


See here: viewtopic.php?f=3&t=6108

Actual details of the task helps.

hacxx
Posts: 57
Joined: 09 Apr 2015 13:18

Re: uploading a file using cmd

#7 Post by hacxx » 23 Apr 2015 03:50

Thanks for the help. i made it work by tweaking the commands

Post Reply