VS 2008 Automating Text File Name?
Mar 7, 2010
I have a program, and writes data to a text file... with a template inside...
All works fine, and saves fine...
I'm wondering, how could I automate the filename it saves?
Currently it saves the text file as NewOrder.txt
I would like it to now realise that there is a NewOrder.txt already there, and save as NewOrder1.txt
Then when the program is closed, and I go to do a new one, it will say ok NewOrder2.txt
Hoping this is possible, I've been reading up on my.settings but I can't really find what I'm looking for...
View 5 Replies
ADVERTISEMENT
Jun 24, 2009
I have some code that is supposed to automate a textbox on a webpage. The problem is, it only works half of the time. The text either displays or does not display. I added the internet controls as a reference but the HTML object library would not get added. Everytime i would go to do this, it would freeze.I also tried doing it two ways. The way that is commented out, always produced a null error. If i change the website to google.com, it works perfect everytime.[code]
View 3 Replies
Mar 12, 2012
I need to find a way to automate the process when a user uploads a microsoft project file to a web application I already have created. The process will need to basically use the save as from project to save into a .csv file so I can use this to import the data to an SQL database (this is needed for custom reporting we already have set up using SQL). I need to automate this process because I will be receiving tons of project files, and if the process is automated the users will then be able to instantly see results.
Basically, is there any way to create or run an automated process that will save these project files as .csv files? Even if the csv files are not formatted correctly, I can find a way around that, just need to first get them into .csv files. The only way I could think of this is to follow the instructions listed below, but I would then need to automate a process to open the file and hit save so this works... [URL]
View 1 Replies
Jan 23, 2009
I was wondering, lets say I have a web browser control? Can someone help me figure out how to automatically press the tab key in the web browser control & then follow it up by tapping the space bar key?
View 4 Replies
May 23, 2011
I am looking for a way of automating the generation of a text document which includes a table and an image. My client has requested, however, that it be in Open Office format. I have played around with AODL for a while and have been able to create a file with the text within the table but some things are still bugging me.One such thing is column width. Another one is aligning an image.I find the problem with AODL is that it is not very intuitive to use and there are not so many examples available.
View 2 Replies
Jul 2, 2010
I have a table of data in Excel 2003 of which I have managed to automate through a VB.NET application to create a Pivot Table. (Will be doing hundreds of these and therefore cannot just run a macro each time...will put the code in a for loop for each spreadsheet in a directory) My problem is that I am trying to create a pivot chart based on the pivot table.
Some code below....I need to create a pivot chart based on the pivot table below!
CODE:
View 1 Replies
Jan 4, 2010
I have one combobox, two buttons (Add and View) and listbox. When I click button Add text from combobox is added to text file. This is code for Add button:
[Code]...
View 7 Replies
Aug 29, 2009
I'm new to visual basic & have learned many new things in such a short period of time from being on the MSDN forums. I have learned particularly in the subject of automating web browsing control using the getattributes etc., but I have tried everything that I have seen in the forums to auto click the "Settings" link in a created gmail account and then have the browser automate the "Forwarding" to another gmail address. I haven't found a solution anywhere to accomplish this.
So here is an account to try out in which this should only take a few mins to a veteran coder:
[Code]...
View 1 Replies
Aug 30, 2009
Hi, i'm trying to use the treeview to display the text of a rtf (rich text file) file when an specific node if clicked.HomeOMGWOOTFor example, if i pick OMG, i want the text of lol.rtf to be displayed on a richtextbox. But somehow i just can't manage to get it... I know to import the text of a .txt file to a textbox, but using the treeview makes it more complicated.This is the code im using right now:
Private Sub TreeView1_NodeMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
Select Case e.Node.Index
Case 0
[code]....
Another thing is, that i can't import the *.rtf text into a richtextbox and i don't know why.
View 5 Replies
Aug 5, 2010
i am working on read line by line . At each line that my app read , i added a event . How do i read a text file till the end and Stop it? there is how it work :
[Code]...
View 5 Replies
May 27, 2009
how to permanently save to text files then re-open all of the information again using SFD and OFD. Now my teacher has come back at me and said that i need to be able to save the information from multiple text boxes and have the text in certain labels to also be saved into the one text file (the labels need to be done because it is a database and these labels are like the fields and the right text box needs to match the right label)
View 39 Replies
Dec 23, 2009
I have this Quiz software that lets you create online multiple choice quizzes which are great for studying (I am in grad school and I'm trying to use everything I can to learn). So the Quiz software is great but it only lets you input questions by hand, one by one. I took a look at the .xml file that the quiz program spits out and came up with the idea to try and make a converter so that I can import many questions at once. I was hoping to try and solve this limitation by doing the following:
Take a .doc that say a tutor gives us with a bunch of practice questions, and then take that into Crimson Editor, and then format it so the question is on line 1, the multiple choice answers are on lines 3,4,5, and 6, (for the next question, the question would be on line 11, and the answers on lines 13, 14, 15, and 16, and so on) and then take that saved .txt file into my program, hit the generate button, and it will spit out the .xml file, and then import that into the quiz software to generate the online quiz.
Here is an attached screenshot of my program layout so far:
I figured out how to open a text file by watching simple youtube tutorials, but I don't know how to have it generate the stuff and have it show up in the bottom text box. I know how to do the coding to convert the txt to proper xml code but I don't know how to be able to save the contents of the bottom text window to an xml file.
View 1 Replies
May 26, 2008
how to do this for vb6 however i am using vb 2008 and the code for vb6 does not seem to work.
I have designed a form with a text box on it, and a command button underneath. The idea is to run this as a sort of stiky notes section.
I want the text box to read rich text into the textbox (C:\\stickynotes.rtf")
Then i have a command button underneath which i want to save the content of the rich text box to the rtf file (C:\\stickynotes.rtf). This is so that the user can edit and ammend information.
here is some code i have so far
Dim fileReader As System.IO.StreamReader
fileReader = My.Computer.FileSystem.OpenTextFileReader("C:\\stickynotes.rtf")
View 5 Replies
Jun 24, 2010
im trying to have the user press a button and a window pops up to select a file. then it reads the file and puts it in a text box. how could i do this?
View 1 Replies
Dec 7, 2011
I would like to be able to read data from a text file, be able to edit it and save the new edits to that file over writing the old ones.
Dim FILE_NAME As String = "C:cat4 ext.txt"
Dim TextLine As String
If System.IO.File.Exists(FILE_NAME) = True Then
[code].....
View 3 Replies
Aug 11, 2010
I have an ASP.NET web form that reads a file and writes some data to a database. I need to run this process on a scheduled basis.
Currently, I have a scheduled task that calls a batch file. The batch file then opens Internet Explorer and navigates to the URL and the process is fired. There is another scheduled batch file that closes Internet Explorer.
View 3 Replies
Dec 18, 2011
My problem is actually how I can transfer certain words or sentences from one cell to another. Keywords that I can reference in the comment cells are: "Description: sentence goes here., Solution: Solution : Microsoft has released a set of patches for Vista, 2008, 7, and 2008 R2 : [URL]...The actual text is this:Synopsis : The remote Windows host has a denial of service vulnerability. Description :The remote host is affected by a vulnerability in the SMB service that can reportedly be abused by a remote, unauthenticated attacker to cause the host to stop responding until manually restarted.This vulnerability depends on access to a Windows file share, but might not necessarily require credentials.Solution :Microsoft has released a set of patches for Vista, 2008, 7, and 2008 R2 :
[Code]...
View 4 Replies
Feb 12, 2010
We have bid on a large installation and if we get it we will need to set up 300-400 router like devices very quickly. To set one up now we connect to the device with a serial cable, run Putty on the windows PC, log in to the device, and run some commands on it to load the latest firmware and change some settings. I'd like to reduce this to connect the router to the pc with the serial cable and press a button on a vb program. The program would launch Putty, login and execute the commands. Sendkeys might work but it would be best if the VB program could read the responses that were coming back to an extent so I wouldn't have to program in really long pauses to insure actions had completed before doing something else.
View 8 Replies
Jan 7, 2009
I want to use VB to set an existing RDP connection's credentials.Can I do that with code only?
View 3 Replies
Mar 26, 2010
i am using the following code to send e-mails, I am using this cause various other methods though sucessful, were not compatible. My earlier code was compatible with Outlook 2003 and used to crash at machines with Outlook 2007. i know you can add a reference to Outloo 2007 office files. but the following code is version independent, but i am not able to pre-populate the various outlook fields such as the To: , Cc: ,BCc:, Subject and Body. and i am not able to Launch Outlook for the user to actually see the display.
Dim outlookApp As Object
Dim outlookNamespace As Object
Dim newMailItem As Object
[code]....
View 2 Replies
Dec 13, 2009
I want my program to read certain text in a text file. For example if I have a text file that contains the following info..
acc=blah
pass=hello
I want my vb.net application to get that the account variable is equal to blah, and the password variable is equal to hello.
View 7 Replies
Jul 3, 2009
I recently made a program that will automatically log in a site and start a game. I have it so that you can save the Username and Password to a text file. I need the text file to be encrypted though, and then decrypted when you load it back up.
View 14 Replies
Oct 7, 2009
I have a text file and I want to take the data from the text file and write each line into the excel file (into the same column). How do I accomplish this? I know how to read data from a text file, but I don't know how to insert the data to a excel file..
View 5 Replies
Mar 26, 2010
My broadband provider used to have an XML data usage stream where I used to check my usage. They have now disabled this so I am planning to build my own VB application to login to the usage webpage and scrape the usage data.This is the code I am using:
WebBrowser1.Navigate("https://memberservices.optuszoo.com.au/myusage/")
WebBrowser1.Document.GetElementById("username").SetAttribute("value", "blah")
WebBrowser1.Document.GetElementById("password").SetAttribute("value", "blah")[code].....
View 4 Replies
Dec 10, 2007
I have developed a VB.Net application to automate Word and I am noticing some issues when I attempt to close a document and subsequently Word. So I have decided to do the following - - ->
I check to see if Word is running on the local PC. If it is not, then I instaniate Word, execute code, close the document and quit Word. If Word is already running I want to be able to use that instance of Word, execute code, close out the active document and NOT close Word. I have retrieved the Process ID for Word running on the local PC but am not sure how I can use Word's properties and methods on an existing instance.
View 4 Replies
Dec 8, 2009
Since installing Windows 7 on one of my test machines my automated uninstaller can not find the uninstall string. My script works on XP just fine. I noticed that the uninstall information is in a different location for Windows 7. it is in Wow6432NodeMicrosoft... is there a constant I can use that will allow my script find the correct uninstall location on both Windows 7 and Windows XP?
View 2 Replies
Sep 22, 2010
i am using vb2008 and trying to create an auto login and reboot for a secure console server "Lantronix SCS100", I can get through the first page with the code below but on the next page i need to check a checkbox "<input type="checkbox" name=OidC2.11>Server</td></tr>", then click event the "<submit>" button to reboot the server.
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]....
View 1 Replies
Dec 27, 2010
I am automating a software using ThunderRT6PictureBoxDC control.
Well by selecting some menu some ThunderRT6PictureBoxDC show up and some don't.
That's how they switch screen
What is ThunderRT6PictureBoxDC?
How do people get it?
How do I set which one show up and which one is hidden using sendmessage?
Is ThunderRT6PictureBoxDC made by microsoft?
View 5 Replies
Mar 30, 2009
I'm trying to use WebBrowser to remotely log into a site and perform a basic action on the site.
The first step is logging in to the site. Here's the form code for the login:
View 3 Replies
Oct 16, 2011
I am new to VB and I try to create my first application to automate some clicks on a facebook game. My first problem is a loop: I created a recorder function, but if i activate my loop it loops endless (should take the number of loops from textbox). If I add a messagebox it works, but if I add PlayTimer.Start() its endless.
Dim result As Integer
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Short
Dim curclicks = 0
Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer)
Private Const MOUSEEVENTF_ABSOLUTE = &H8000 ' absolute move
[Code] .....
The 2nd question i got: How to handle the next function I am planning? I will try to explain it (look at the attachment picture): Because of different monitor resolutions I need a function that maybe draw a square to boarder the gameplay area, then record some coordinates that can be played by clicking on a button. (visit neighbor, reload game, visit next neighbor, ...)
View 1 Replies