473,769 Members | 1,959 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending a path to a FILE control ( it has to be possible! )

Hi all.. here s my problem ( maybe some of you saw me on other groups, but i
cant find the solution !! )
I have to upload a file to an external site, so, i made a .vbs file , that
logins to the site, and then i have to select the file to upload.. i used
sendkeys.. and i worked perfect.. BUT ... the computer must be locked for
security ( obviusly ) reazons.. so..i think this probable solutions to
unlock the computer and run the application .. or find
another way to fill the FILE control on that site...

- I read some groups, and i found a SendMessage() function, that sends
characters to an especific application, but dont know wich language is it...
and if it runs on a locked computer.
- I can do the click on BROWSE button, but how can i select a file on the
browse window ? ( without using SENDKEYS ) .. i can do a VB6 application
that runs the URL in a webcontrol, but cannot acces to that BROWSER window
right?
- Is there any browser with the security bug that i can write in the VALUE
property of the FILE control?? or is anyway to set that security on
IExplorer?
- .NET .... is there anyway to do this in .NET (ASP.NET or VB.NET) ? i m
begginer but if it could be possible.. i learn .NET in one hour !! lol..
Any idea would be really help here..

Thank you all.

--
CHIN@KD
www.racingclub.com.ar

Jul 21 '05
20 2513
You're not a jerk. You're just lazy! And that is certainly something that
can be remedied. I have been working on parsing Digital Elevation Models and
GeoTiffs, for rendering real-time GPS-driven 3-D terrain and situational
awareness information for small aircraft pilots for about 6 months now. I've
had to teach myself DirectX, Indigo, parsing binary image file formats, and
a good bit of geography, trigonomentry, and a smattering of calculus. Most
of this is stuff that almost nobody else is doing. You know how I solved my
problems? Research. My Home Page is Google.

I will give you one last piece of help:

http://www.microsoft.com/downloads/d...displaylang=en

That is the FREE Microsoft .Net SDK, which you can download and use to your
heart's content. That is where I spend the second-most amount of my research
time.

From time to time, I do ask somebody for help. What I get is generally a
shove in the right direction, and I take it from there. That's all anyone
should need.

I will probably get clobbered (again) for doing this, but if I didn't feel
it was truly in your best interest I wouldn't do it.

Good luck!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
news:OU******** ******@TK2MSFTN GP12.phx.gbl...
Sorry , i m a jerk, in know..

i m newbbie at .NET and i have to do it for yesterday... lol..

ok, so i have to create the WebClient object, get the URL , log in that
page
( i think just do the post to the ACTION on the login form ), and then
post
the file..

right??

thnx again !!
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:ew******** *****@TK2MSFTNG P15.phx.gbl...
I'm not following you. The Windows Form that you embed in the page
doesn't
need to do anything with the WebForm it resides in. It just has to
display
the dialog box, create the WebClient, and send it to its destination. If
a
POST request is needed, the WebClient can do a POST.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

"CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
news:eT******** ******@tk2msftn gp13.phx.gbl...
> Yes, i just try to acces a page with System.Net.Webc lient , simple..
> and
> done...
> i have to login on the site frist.. so i imagine that i have to put a
> webcontrol ( in VB6 was that name ) and navigate it right?
>
> and i have to post the user and the pass to the ACTION of the form ..
> right?
>
> m i on the zone?? lol
>
> tnx
>
> "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
> news:es******** ******@TK2MSFTN GP14.phx.gbl...
>> Yes, if you use it in an embedded .Net Windows Form in the page.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> Neither a follower nor a lender be.
>>
>> "CHIN@KD" <ra**********@y ahoo.com.ar> wrote in message
>> news:Ou******** ******@TK2MSFTN GP10.phx.gbl...
>> > Tnx Kevin... i can install framework on the client, but i have to post > the
>> > file to the https url , it is possible with System.Net.Webc lient ?
>> >
>> >
>> > "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
>> > news:uV******** ******@TK2MSFTN GP10.phx.gbl...
>> >> > System.Net.WebC lient is used client side (NOT server side). It's
>> >> > purpose
>> >> > is
>> >> > to upload (POST) a file to a particular page. This is done client
>> > side...
>> >>
>> >> I'm afraid that's just not true, Patrice. System.Net.WebC lient is used >> >> server-side in an ASP.Net application. It acts like a browser, sending >> > HTTP
>> >> requests, and receiving HTTP responses. The HTML input type=file form >> >> element is used for uploading files on the client. The server-side
>> >> ASP.Net
>> >> Control that creates the file upload form field on the client is
>> >> System.Web.UI.H tmlControls.Htm lInputFile.
>> >>
>> >> --
>> >> HTH,
>> >>
>> >> Kevin Spencer
>> >> Microsoft MVP
>> >> .Net Developer
>> >> Neither a follower nor a lender be.
>> >>
>> >> "Patrice" <no****@nowhere .com> wrote in message
>> >> news:%2******** **********@TK2M SFTNGP12.phx.gb l...
>> >> > System.Net.WebC lient is used client side (NOT server side). It's
>> >> > purpose
>> >> > is
>> >> > to upload (POST) a file to a particular page. This is done client
>> > side...
>> >> >
>> >> > It should work. Check the documentation for this class and give
>> >> > it a >> >> > try...
>> >> >
>> >> > Patrice
>> >> >
>> >> > --
>> >> >
>> >> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de
>> >> > news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
>> >> >> I have to do a batch process that replaces a guy and his clicks .. > lol
>> >> >>
>> >> >> there is no way to change or access the remote side code.. and
>> >> >> no
>> >> >> other
>> >> > way
>> >> >> to do that loggin the page and posting the file..
>> >> >>
>> >> >> the page is like hotmail, u log in.. select New Mail.. attach a
>> >> >> file
>> >> >> ..
>> >> > and
>> >> >> then have to select the file... with System.Net.WebC lient, can i
> emule
>> >> >> all
>> >> >> that? .. is possible the website knows if the file comes from
>> >> >> System.Net.WebC lient or from their form ?
>> >> >>
>> >> >> sorry for my english :p i m posting in japanesse groups !!! lol
>> >> >>
>> >> >> Thnx
>> >> >>
>> >> >>
>> >> >> "Patrice" <no****@nowhere .com> wrote in message
>> >> >> news:#4******** *****@TK2MSFTNG P14.phx.gbl...
>> >> >> > I'm not sure to have the whole picture. If I understood you
>> >> >> > are
>> >> >> > using
>> > a
>> >> >> web
>> >> >> > app that let's you upload a file. Instead of doing this yourself > you
>> >> > would
>> >> >> > like to have an app doing this for you ?
>> >> >> >
>> >> >> > You have nothing to change or do server side. You'll have a
>> >> >> > client
>> > side
>> >> >> .NET
>> >> >> > app that uses System.Net.WebC lient to post a file to the
>> >> >> > server
> side
>> >> > page.
>> >> >> > You could also ask them for possible alternate methods (they may >> >> >> > have
>> >> > FTP
>> >> >> > access ?)
>> >> >> >
>> >> >> > Patrice
>> >> >> > --
>> >> >> >
>> >> >> > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message de >> >> >> > news:ec******** ******@TK2MSFTN GP10.phx.gbl...
>> >> >> > > Thanx Patrice !!!
>> >> >> > >
>> >> >> > > But this app works on the Client.. and i dont have access to
>> >> >> > > the
>
>> >> > server
>> >> >> > > site... so.. i only can navigate their site and find out how to >> >> >> > > put
>> >> > the
>> >> >> > path
>> >> >> > > on the file control !!!
>> >> >> > >
>> >> >> > > "Patrice" <no****@nowhere .com> wrote in message
>> >> >> > > news:uB******** ******@TK2MSFTN GP15.phx.gbl...
>> >> >> > > > System.Net.WebC lient allows to upload a file to particular
> page.
>> >> >> > > > See
>> >> >> the
>> >> >> > > SDK
>> >> >> > > > documentation for a sample.
>> >> >> > > >
>> >> >> > > > Patrice
>> >> >> > > >
>> >> >> > > >
>> >> >> > > > --
>> >> >> > > >
>> >> >> > > > "CHIN@KD" <ra**********@y ahoo.com.ar> a écrit dans le message > de
>> >> >> > > > news:uV******** ******@TK2MSFTN GP15.phx.gbl...
>> >> >> > > > > Hi all.. here s my problem ( maybe some of you saw me on
> other
>> >> >> groups,
>> >> >> > > but
>> >> >> > > > i
>> >> >> > > > > cant find the solution !! )
>> >> >> > > > >
>> >> >> > > > >
>> >> >> > > > > I have to upload a file to an external site, so, i made
>> >> >> > > > > a
> .vbs
>> >> > file
>> >> >> ,
>> >> >> > > that
>> >> >> > > > > logins to the site, and then i have to select the file
>> >> >> > > > > to
>> >> >> > > > > upload..
>> >> > i
>> >> >> > > used
>> >> >> > > > > sendkeys.. and i worked perfect.. BUT ... the computer must > be
>> >> >> locked
>> >> >> > > for
>> >> >> > > > > security ( obviusly ) reazons.. so..i think this
>> >> >> > > > > probable
>> >> > solutions
>> >> >> to
>> >> >> > > > > unlock the computer and run the application .. or find
>> >> >> > > > > another way to fill the FILE control on that site...
>> >> >> > > > >
>> >> >> > > > > - I read some groups, and i found a SendMessage()
>> >> >> > > > > function,
>> > that
>> >> >> > sends
>> >> >> > > > > characters to an especific application, but dont know wich >> >> > language
>> >> >> is
>> >> >> > > > it...
>> >> >> > > > > and if it runs on a locked computer.
>> >> >> > > > > - I can do the click on BROWSE button, but how can i
>> >> >> > > > > select
> a
>> >> > file
>> >> >> on
>> >> >> > > the
>> >> >> > > > > browse window ? ( without using SENDKEYS ) .. i can do a
>> >> >> > > > > VB6
>> >> >> > application
>> >> >> > > > > that runs the URL in a webcontrol, but cannot acces to that >> >> > BROWSER
>> >> >> > > window
>> >> >> > > > > right?
>> >> >> > > > > - Is there any browser with the security bug that i can
> write
>> > in
>> >> >> the
>> >> >> > > > VALUE
>> >> >> > > > > property of the FILE control?? or is anyway to set that
>> > security
>> >> > on
>> >> >> > > > > IExplorer?
>> >> >> > > > > - .NET .... is there anyway to do this in .NET (ASP.NET or >> >> > VB.NET)
>> >> >> ?
>> >> >> > i
>> >> >> > > m
>> >> >> > > > > begginer but if it could be possible.. i learn .NET in one >> >> >> > > > > hour
>> >> >> > > > > !!
>> >> >> > lol..
>> >> >> > > > >
>> >> >> > > > >
>> >> >> > > > > Any idea would be really help here..
>> >> >> > > > >
>> >> >> > > > > Thank you all.
>> >> >> > > > >
>> >> >> > > > > --
>> >> >> > > > > CHIN@KD
>> >> >> > > > > www.racingclub.com.ar
>> >> >> > > > >
>> >> >> > > > >
>> >> >> > > > >
>> >> >> > > >
>> >> >> > > >
>> >> >> > >
>> >> >> > >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>



Jul 21 '05 #21

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
1349
by: CHIN | last post by:
Hi all.. here s my problem ( maybe some of you saw me on other groups, but i cant find the solution !! ) I have to upload a file to an external site, so, i made a .vbs file , that logins to the site, and then i have to select the file to upload.. i used sendkeys.. and i worked perfect.. BUT ... the computer must be locked for security ( obviusly ) reazons.. so..i think this probable solutions to unlock the computer and run the...
0
9420
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9851
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7401
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.