Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

FTP Edit txt

Original Message
Name: Genocide (by Greaper6)
Date: October 18, 2007 at 17:37:22 Pacific
Subject: FTP Edit txt
OS: WinXP Media Center Editio
CPU/Ram: ...
Model/Manufacturer: Dell
Comment:
i need a code to edit a txt file on a Login FTP site..


Ftp://mysite.com/blah/text.txt

i wanna be able to have a set /p prompt asking me what to add to the text.txt

If its possable, i want it to add the time and date to the text file also so when someone reads it it looks like so

Added at: 10/19/07 @ 9:30pm

blah Blah Blach, what ever I typed in the following..

EXP

What would you like to add to the Text FIle?

>> [ text i enter ]


If this is possable in batch plz someone respond Asap, and i meen like within the hour kinda responding asapness..

if not, would someone make it in ANY language that will work, and dont put a key logger in it or something, cuz ill know.. trust me..


Thanks in advance to anyone thats makes this or attempts it..


Report Offensive Message For Removal


Response Number 1
Name: tonysathre
Date: October 18, 2007 at 23:30:02 Pacific
Subject: FTP Edit txt
Reply: (edit)
"if not, would someone make it in ANY language that will work, and dont put a key logger in it or something, cuz ill know.. trust me.."

Rofl. Not to affend you, but how would you be able to tell if you can't even write an NT shell script? I assure you, no one at CN has malicious intent.

Anywho,

@echo off
echo Added at: %date% @ %time% >> text.txt
set /p text=What would you like to add to the Text FIle?
echo %text% >> text.txt


"Computer security." — Oxymoron


Report Offensive Follow Up For Removal

Response Number 2
Name: Genocide (by Greaper6)
Date: October 21, 2007 at 22:46:02 Pacific
Subject: FTP Edit txt
Reply: (edit)
Doesn't go to ftp like i asked...

Report Offensive Follow Up For Removal

Response Number 3
Name: tonysathre
Date: October 21, 2007 at 23:22:06 Pacific
Subject: FTP Edit txt
Reply: (edit)
"Doesn't go to ftp like i asked..."

Well excuse me.

@echo off
echo Added at: %date% @ %time% >> text.txt
set /p text=What would you like to add to the Text FIle?
echo %text% >> text.txt
echo o mydomain > ftp
echo username >> ftp
echo password >> ftp
echo put text.txt >> ftp
echo bye >> ftp
ftp -s:ftp

Untested


"Computer security." — Oxymoron


Report Offensive Follow Up For Removal

Response Number 4
Name: Genocide (by Greaper6)
Date: October 21, 2007 at 23:25:20 Pacific
Subject: FTP Edit txt
Reply: (edit)
w00t if it works.. Ty

Edit


Doesn't work.


Report Offensive Follow Up For Removal

Response Number 5
Name: Mechanix2Go
Date: October 22, 2007 at 00:43:33 Pacific
Subject: FTP Edit txt
Reply: (edit)
" Doesn't work"

sure... but what does it DO?


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal


Response Number 6
Name: Genocide (by Greaper6)
Date: October 22, 2007 at 00:51:41 Pacific
Subject: FTP Edit txt
Reply: (edit)
i want it to log onto a username protected FTP

Ftp://User:pass@MyFTP.com;net;org ( Blah )

then I want it to ask me to ether Upload a a File from my computer (*.txt) to the FTP or to ask me what I want in a file (*.txt), make it, then send it to the FTP in the dir " /public_html/ " or w/e dir of my choice.

then one that was posted makes a ftp.(Unknwn) and a text.txt on the desktop. When I open the FTP.(Unknwn) in notepad, i get what i typed for (below)

echo o mydomain > ftp
echo username >> ftp
echo password >> ftp
echo put text.txt >> ftp

i have asked a few ppl and what i come out with is this.

This downloads the file, i think, but its not what I was looking for.

@echo off

>> 0.ftp echo o gr1m-r34p3r.tastyspleen.net
>> 0.ftp echo [User]
>> 0.ftp echo [Pass]
>> 0.ftp echo cd public_html
>> 0.ftp echo get javascript.js
>> 0.ftp echo bye

ftp -s:0.ftp
pause


Report Offensive Follow Up For Removal

Response Number 7
Name: Mechanix2Go
Date: October 22, 2007 at 02:57:24 Pacific
Subject: FTP Edit txt
Reply: (edit)
I don't know where you've gone wrong. tony's bat produces this ftp script, which looks like it'll do the job:

====================
o mydomain
username
password
put text.txt
bye
====================


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal

Response Number 8
Name: Genocide (by Greaper6)
Date: October 22, 2007 at 04:45:25 Pacific
Subject: FTP Edit txt
Reply: (edit)
you meen this?

@echo off
echo Added at: %date% @ %time% >> text.txt
set /p text=What would you like to add to the Text FIle?
echo %text% >> text.txt
echo o mydomain > ftp
echo username >> ftp
echo password >> ftp
echo put text.txt >> ftp
echo bye >> ftp
ftp -s:ftp


all if you want that to work you would have to make it *.FTP for any ftp progy to work with it. * = (x)-=[ some name ]=-

but, i was looooking for it all in batch, no 3rd party programs


Report Offensive Follow Up For Removal

Response Number 9
Name: Mechanix2Go
Date: October 22, 2007 at 04:49:01 Pacific
Subject: FTP Edit txt
Reply: (edit)
That bat uses only ftp.exe ; no 3rd party.


=====================================
If at first you don't succeed, you're about average.

M2



Report Offensive Follow Up For Removal

Response Number 10
Name: Genocide (by Greaper6)
Date: October 22, 2007 at 04:51:06 Pacific
Subject: FTP Edit txt
Reply: (edit)
well, it doesn't work for me.. :(

Ill give it another shot at it.


Report Offensive Follow Up For Removal



Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: FTP Edit txt

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




DSHUB24 Connection Problems

need help with dsl and dial up

novel 3.12

help mandriva install last straw!

Icon Scaling in Explorer Bar


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC