Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP componentless upload to different site
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

seven
Senior Member

USA
1037 Posts

Posted - 05 July 2001 :  12:41:54  Show Profile  Visit seven's Homepage
I am looking for a method to upload a file using an ASP page thAa does not rely on a component or dll. I need to upload to a different website on a different server, seperate from where the page resides. Any ideas?

camusflage
Starting Member

USA
26 Posts

Posted - 05 July 2001 :  17:54:14  Show Profile
If things haven't been too harshly locked down, you may be able to do a script host launched ftp session (if you're using ftp), or you may be able to instantiate an IE component to run an http post.

Mike



Go to Top of Page

seven
Senior Member

USA
1037 Posts

Posted - 09 July 2001 :  17:32:32  Show Profile  Visit seven's Homepage
ummm... uhhh, I am still not sure what to do.
Go to Top of Page

camusflage
Starting Member

USA
26 Posts

Posted - 10 July 2001 :  08:31:09  Show Profile
quote:

ummm... uhhh, I am still not sure what to do.


set wsh = server.createobject("wscript.shell")
wsh.run "C:\winnt\system32\ftp.exe -s:<filename>"

filename is a file that contains commands to stuff into ftp.exe

BE CAREFUL WITH WSH. I cannot emphasize this enough. You can end up with orphan processes that even task manager can't touch. In these cases, you need kill.exe from the res kit to get rid of them.

Mike


Go to Top of Page

George_Zhu
Starting Member

China
46 Posts

Posted - 10 July 2001 :  08:54:10  Show Profile  Visit George_Zhu's Homepage
Is this WSH unlocked? I mean will this command -- set wsh = server.createobject("wscript.shell") always working?



[font color=SlateBlue]Learning is all I want[/font]
-----------------------
http://www.zhujie.org
Go to Top of Page

camusflage
Starting Member

USA
26 Posts

Posted - 10 July 2001 :  19:41:22  Show Profile
quote:

Is this WSH unlocked? I mean will this command -- set wsh = server.createobject("wscript.shell") always working?

Like I wrote in my original message, it depends upon how tightly things have been locked down. It's pretty trivial to tweak the permissions on any component you want tor. I can tell you that if I were running a server which had anything less than completely trusted code on it, C:\WINNT\System32\wshom.ocx (wscript.shell) and C:\WINNT\System32\scrrun.dll (scripting.filesystemobject) would be the first things to get whacked. Just to prove a point, from an anonymous page(IUSR context), I created a wscript.network (?) object, dropped an existing drive mapping, added a new one, and then refreshed the admin-level explorer view from my terminal session. Beleive it or not, my drive mapping for my interactive session got changed by an anonymous web page. It all depends on your host though, as to what is installed and what is locked down. I'm pretty sure script host was IE4+, and since almost anything of the modern era on an NT server requires IE4, 5, and even 6 now, it's probably sitting there.

Mike

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07