Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Help with a batch file
Name: Matt Date: November 6, 2000 at 11:18:19 Pacific
Comment:
Can someone please help me with writing a batch file? I really don't know much about them. Here is what it needs to do if possible.
In a dos promt I change to a network drive "F" then cd and then from that directory I ftp and use a username and then a password and once I am in the remote server I need to "cd" and then transfer a file and then "bye" Is there a way to make this into a batch file? Thanks in advance!! Matt
Name: neXussT Date: November 6, 2000 at 12:03:17 Pacific
Reply:
i don't think so...i don't think batch files can interact with a program in dos...but in windows..u can download a program called FakeSurf...u can record your mouse so u just go about opening a windows ftp prg like cuteftp, click on the ip u want ot connect to and stuph like that and Fake Surf will record it and u can replay it at a later time good luck :) neXussT
0
Response Number 2
Name: dave Date: November 6, 2000 at 13:44:00 Pacific
Reply:
@echo off NET USE F: \\RemoteComputer\directory /NO >c:\windows\TEMP\CreatedOuputFile.TXT ftp YourFtpSErver username password lcd .. get RemoteFileFullPath LocalFileFullPath bye
place all text in notepad.. then change the file extension from .txt to .bat thats all (of course change the information to suit u)
0
Response Number 3
Name: Matt Date: November 7, 2000 at 09:05:27 Pacific
Summary: Problem - have 2 dirs (c:\old , c:\new) and i need to copy files from new -> old. Have written a batch file that, if exist, copy file with extension .dup (duplicate) and then at end of copy advise me ...
Summary: Is it possible to set a folders size using a batch file. ie: S:\people\*.* all folders under people i want to limit the folder size to 300MB, there are about 500 users, it would take me for ever to ...