Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating new directories

Status
Not open for further replies.

DarkJedi

IS-IT--Management
Dec 13, 2001
10
GB
I am trying to write a sort of uploading script and so far it works and I am able to select a file and have it copy to a user specified directory.  However, if the specified directory does not exist, I want it to either create the directory and then copy the file to that directory, or ideally, ask the user if he/she wishes to create the new directory and then copy the file to that directory.<br>If you can help please let me know.<br><br>thanx!
 
Whoa!&nbsp;&nbsp;You're planning to let people specify a directory on your system and then upload a file???&nbsp;&nbsp;Are you nuts?&nbsp;&nbsp;I hope you don't plan on keeping control of your system or any information which is on it.<br><br>Sincerely, <br><br>Tom Anderson<br>CEO, Order amid Chaos, Inc.<br><A HREF=" TARGET="_new">
 
DarkJedi,<br><br>Are you using Net::Ftp to do the transfers? The mkdir function in there will do what you need.<br><br>Oh - and I agree with Tom in general by the way - but I assume that you're writing this for an internal network. <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Thanx, and yes.&nbsp;&nbsp;This is strictly being used as a backup program on a secure ethernet.&nbsp;&nbsp;I'm not that dumb. :)
 
Tom! &lt;smile&gt; you got a userid! Now you can &quot;Click here to mark this thread for email notification&quot; and other wildly exciting things... Welcome anyway. <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top