Passing Stuff To And From PHP File
Feb 11, 2009I saw this thread and think that this is something I could use [URL]. I'd like to be able to pass stuff to and from a PHP file.
View 1 RepliesI saw this thread and think that this is something I could use [URL]. I'd like to be able to pass stuff to and from a PHP file.
View 1 RepliesIt keeps throwing an exception like this "Cannot create a file when that file already exists" at this line:
Code:
Directory.Move(contentDirectory, archiveDirectory)
I have checked, and the directory that I am moving, does exist at the source, but does not exist at the destination. I have tried including some console.writelines to make sure my variables are correct, and they look good. The first bit of code works where it creates the new directory, but fails when I try to move anything over to that directory.
Code:
Sub Main()
Dim Guid As String = "test"
Dim archiveName As String = "scripttestone"
Dim contentDirectory As String = "C:content" & Guid
Dim archiveDirectory As String = "C:archive" & archiveName
Dim TodaysDate As Date = Now()
[Code] .....
1)How can I make my program get the contents of a .txt file on my website to tell the program to run or not?Here is and example of what I want:Say the file says "Running", the program would run without problems.If the file was to say "Unavailable", a pop up would appear saying "The program is currently unavailable, try again later." Then once the person clicked OK, the program would close.
2)How can I make the program get contents from a .txt file to get the latest version of the program, then if there is a newer version, there would be a pop up saying there is a newer version and they need to update. Then when they clicked OK, the program would close and it would open their default web browser or Internet Explorer to the update page.
I am using about 5 different filesystemwatcher routines total. I am using the following
filewatch.NotifyFilter = NotifyFilters.CreationTime Or NotifyFilters.LastWrite
AddHandler filewatch.Created, AddressOf addfile
AddHandler filewatch.Changed, AddressOf addfile
filewatch.EnableRaisingEvents = True
However, there is one problem with it... whenever I open a file and change stuff, then close it without saving the changes, the events still fire. I am opening excel workbooks in code, then use xlsWB.Close(SaveChanges:=False) to close them, and the event still fires, where the file isn't really changed so it should not fire.
I'm using a background worker to read a XML file and do stuff in a database i get nothing in debugger but when i run it i get this error... how can i find out where and what is wrong? Exception has been thrown by the target of an invocation.
View 6 RepliesI have a pdf on one server I need to pass on another server. Both have WCF's published to them.On the 'serving' server, I have the following code (thanks antisanity!):[code]But I have no idea how to actually write the file on my 'receiving' server. I've been playing with System.IO,[code]
View 2 RepliesI am new to VB environment. I am using Visual Studio 2005.In certain code, I need to add 4000 elements to the ComboBox list.
Using the command
ComboBox1.Items.Add()
seems ridiculous.
I am thinking of creating EXCEL File, in which I will put all the names in 1 column and call that excel File, when "dropdown" of combo box is clicked. how this will happen?? code related to this? or if this issue has already been discussed then plz give me the link for the same If this is not good idea like putting 4000 elements, then can there be any other solution?
[code]This works fine and passes 8 parameters into the sysimp.bat file. The problem is if I try to pass in a value that has a space between the text then it will treat it as two parameters rater than one.So if P1 value is for example "Hello World" then when passed into the bat file it will assign "Hello" to P1 & "World" to P2. Is there a way to wrap the text in the parameters or should this be done in the .bat file?
View 9 RepliesI have the following .dll file created and added as a reference in my calling project; however, being new to vb .net I seem to be having difficulty calling the dll that I created.I want to pass a string to the below function, break that string out into two strings and then return the structure.
Namespace Item_Breakout
Public Class Item_Run_Breakout
Public Structure vbItem_Code[code].....
I want to pass text into an exe file which is named say.exe. It can convert to phonemes using the command line -lp. after the say.exe..
I need to allow user input text and then convert the text and save it in a text file which would be created as it converts...
find below the code for initiating a process below...
' passing the text saved in the file into the application
Dim ProcessInfo As New ProcessStartInfo("C:Program FilesDECtalkUSsay.exe", UserInput)
[Code]....
I deleting the files of certain age in a directory and also need to write a log file. So my question is how can we pass a variable from one method to another?
Example : Dotnet.Explorer
In my VB.NET project I wanted to run a JAR file in a separate thread. Now the question : Is it possible to pass parameters to a JAR file during run time from VB.NET??
View 1 RepliesHow do I reference my Label1 control on my aspx page in my inline Control line?
I am bringing in an ascx file and cant do this simple thing:
<uc1:ContactsListforCompanies ID="ContactsListforCompanies1" runat="server" CompanyID=<%= Label1.text %> />
Is there anything like STL in Visual Basic , e.g a binary tree , quick sort Do I have to implement those algorithms myself , does Microsoft provide any useful interface ?
View 1 RepliesI have a SSIS package that just makes a folder (Child package) and i have a second package (parent) that calls the first package using a script task and the code is like [code]I want to pass the XML file as a parameter ,what the XML file does is that it has Variable for a folder name, so that if i like to change the folder name (making new folder), I can change it in the XML file and the parent pakage will call the child pakage with the XML file as a parameter.
View 1 RepliesIn this report I put an image box named logo the select image Source is set to EXTERNAL and in the use this image I have Parameters!LogoPath.Value.I would like the users to be able to pick their own logo.
View 1 Repliesi am making a program and the program runs too slow, so i would like to declare my functions at once.. not like this :
[Code]...
I've been looking for some programming languages, and I've read about the basics of Python and C++, but I'm more interested in Visual Basic But! Everywhere I look, I only find tutorials about how to use MS's Visual Basic Express and stuff, not how to code, not tutorials about the code syntax, how to declare variables and these essential things.Does anyone here has a good tip about learning the basics of VB? And not how to use VB Express/Full edition I can insert a new button but I have no idea on how to make it work, what's the point of it?
EDIT: Oh and another thing.I was playing around VB, creating a simple user interface with buttons, and I've noticed that the code doesn't change when I update the button's or other objects' Name property in the Designer window... shouldn't the code update itself with the new objects names?
i have a hashtables working with a simple dictionary, my problem is i put the stuff into the hashtables but i cant extract the key... i need the key so i can remove stuff from it using the code..
View 11 Repliesi am working on a project! the problem i am having is that i have two combo box first combo box takes stuff form the file and then add it to listfile it also removes that selected file from the combo box.suppose i have four carid in my combo box...when i select one car and then send it to dispatch it removes form tht combo box and add it to the lst file... this much i can do. is i need that carid that removes from the combo box should add in another combo box ... but i cant able to do it
Public Class MainForm
Private strCarID() As String
Private strTime As DateTime
Private strDate As DateTime
[code]....
I am making kind of like a login form, except a little more complicated. Right now I have an SQL Database that stores the login information. My question is, how do I add stuff to the existing tables? Like How would I have it so an admin can type in a new login and a new password, and have it so the form stores it in one of my tables in the database?
View 11 RepliesI can't get anything to display on the list box that I created named "depreciationListBox" I have been working on this project for a while and I am quite stumped.
Private Sub displayButton_Click(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles displayButton.Click
Dim cost As Double
Dim life As Double = CDbl(lifeListBox.SelectedItem)
Dim period As Double
[Code] .....
[URL]
Dim ThisModule As IntPtr
Dim Proc As Process() = Process.GetProcessesByName("Sol")
For i = 0 To Proc(0).Modules.Count - 1
[code]....
I have made this code, and works perfectly, but now... i want to make it in Delphi, the problem is... i have not the enough knowledge for make it, and... in google, i haven't found the information i need.
Adding it there but if i load i it loads it all
View 8 RepliesI am trying to polish up a program a program that I have converted from a Windows Form in to an ASP.NET Web Application. I have several questions:
1.) I have a drop down box where users can select their variables, but users can also enter their variables manually into various text fields. What I want is for the drop down box to show a string like "Choose Variables" when ever the user enters their variables manually. I want this to happen without having to reload the page.
2.) In the Windows Form version of this application I had a RichTextBox that populated with data (line by line) after a calculation was made. I used "AppendText" in my Windows Form, but that is not available in ASP.NET, and neither is the RichTextBox. I tried to use just a text box but that isn't working right.
[Code]...
I am almost done cleaning the code. It is a huge project and I only have 35 errors left. I have opened a new thread as this is no longer only about IsNumeric. All errors relate to the following Microsoft.VisualBasic keywords:
InStrRev
InStr
Mid
DateDiff <=== solved date.Subtract(otherDate)
[code]....
I used a combination of If and doWhile loop codes. Is it possible that the loop will stop at 2nd loop if it will perform a 3 loops?I'm creating an app that if the problem is got the match at 2nd out of 3rd loop, the loop will stop.
View 1 RepliesI'm creating a reporting web page as part of a standard VB.NET web application. The page is data driven, with jquery making calls to a web service local to the application to get values of elements that are dynamically created in the DOM. Ultimately these dynamic elements and their values are all wrapped up in a JSON object, so that part of the client side is fine.
Right now, I can pass that JSON object to a method in the web service which creates an SQL Data adapter from the values and queries a database. My ultimate goal is to have this client JSON data be used to query the database and construct an excel file to send back to the user, or failing that a CSV file.
It's my understanding (from working with PDF file generation) that this type of function can only be done on the server side of the web application, not even from the web service (i.e. I can't have the web service return an array of bytes and have JavaScript/jQuery present that as a file).
So, how do I go about this? Now I have my JSON object on the client side, where should I be sending it, how, and how do I go about returning my file?
I've read about either storing the JSON in a hidden field and having the server take the elements value and go from there, or using AJAX to send the JSON to the server just before a postback is made to fire off the server-side function to run the query and return the data.
I just need a little guidance, and a little help understanding where to use the hidden field, or what I am actually doing with the pre-postback AJAX call.
How can i make it where you click button 1 and on a page likeebbrowser1 it will click the text Add as friend cause they don't
View 1 RepliesI am well aware that finalizers are typically used to control unmanaged resources. Under what circumstances may a finalizer deal with managed ones? My understanding is that presence in the finalizer queue will prevent any object, or objects strongly referenced thereby, from being collected, but it will not (of course) protect them from finalization. In the normal course of events, once an object is finalized it will be removed from the queue and any objects it references will no longer be protected from collection on the next GC pass. By the time a finalizer is called, the finalizers may have been called for any combination of objects referred to by the object; one cannot rely upon finalizers being called in any particular sequence, but the object references one holds should still be valid.
[Code]...