Toogle Button Calling 2 Diffrent Batch Files?
May 11, 2012
I 'm trying to achieve is have 1 button that toggles between 2 batch files start/stop - when pressed the button calls for a batch file to start process - then if pressed again it calls for another batch file to stop the process. But it would be hand to have indicator or text on button stating the status.
View 1 Replies
ADVERTISEMENT
Jun 13, 2010
Before I start, I'm not 100% sure this is the right place to ask. Okey, so I'm making my own Notepad, which will contain newer features. (Private use only though) One of them being tab control.
Now I want the program to be in the "Open With..." menus for all files, so I can choose myself.
And if the program is already running when user opens a new file, I want the text to appear in a new tab, instead of a new window of the program.
I tryed to be straight forward, and keep it short. So if you need more info, fell free to ask.
View 7 Replies
Jul 21, 2010
I have a series of text files in multipule diffrent sub directories. I found the following functions on the Internet:
CODE:
The functions will make a direcotry tree in my debug window, that looks something like this:
CODE:
What I want it to do is to have it return an array of relitive file paths, from the starting direcotry I give the function. Then I will use a loop to cycle though each file in the array to make certain changes.
Something like this:
CODE:
Any ideas on how to acomplish this?
View 4 Replies
Mar 24, 2012
i have 2 problems the first problem is if i have a .txt file how can i extract specific data. the second problem can i create batch files on the fly because of the need for a variable again it may not make sense but shout tyrannically
View 2 Replies
May 17, 2012
I am busy writing a application that i can set up a list of files to copy from one location to a remote network drive.
THe program has a list of "jobs" in a datagrid that it loops through and executes in sequence. What i have now is a background worker that reports the status of which job it is on (File 1 of 5) but i would like something that shows the status of the current copying file as sometimes large files can look like it's stopped on the network
I am using the System.io.file.copy structure, but have also tried the my.computer.filesystem.copyfile (which shows the status in a "windows" copy box)
So, what i would like is some guidance on how to create a function that will copy the file but also report back progress periodicly. I don't want to read and write byte for byte as im worried this will be too slow.
Also, is there a better way/function to use to copy files? Looking for best speed
View 2 Replies
Oct 17, 2011
I have been asked to develop a solution which send to the default printer a list of files stored in a directory in file name sequence. These files maybe of any type - such as pdf or Office documents.
I have seen suggestions to using a process class (such as [URL]..However, the process would run largely unmonitored so I have concerns with regards to being able to control the submission of the numerous jobs to the printer and, for example, stopping the print should there be a failureerror in the print queue.
View 3 Replies
Jan 27, 2012
I've been developing an application that is basically a GUI for several batch files. You click on a button, and the corresponding batch file will run. I got it working in debug using this code:
Private Sub btnOpenFS_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpenFS.Click
System.Diagnostics.Process.Start("openfs.bat")
End Sub
View 11 Replies
Jun 5, 2011
Well i figure that if i do a temp. batch file for a small project heres the batch script. IPAddy would = a number xx.xx also how to execute from a button and run as admin at the same time. @echo off netsh interface ipv4 set address "local Area Connection" static 10.IPAddy.2
View 1 Replies
Feb 18, 2011
I need to MOVE a batch of files from one drive to another one by one.How can I know when one file as completed the MOVING process so I the other file in row can start moving
View 3 Replies
Mar 18, 2011
I am having a hard time running .bat files programatically.[code]
View 9 Replies
Sep 17, 2009
I have an hta menu with selection buttons to run batch files. The files run okay, so this is purely a tidying up exercise. I want the command windows to either run silently, as background tasks, or minimized.
View 1 Replies
Mar 15, 2012
I have a VB program that writes a batch file to allow me to run a line of the following format:java <my class file> [options]I then run the batch file using the Shell() routine in VB.When I do this it says it cannot find <my class file>. However if I run the same batch file from a dos prompt it works.why it works in a dos prompt but not in the Shell function?
View 1 Replies
Sep 30, 2011
Any VB example of batch printing pdf files from a dos/windows subdirectory (with only Acrobat Reader installed)? I've got a folder full of pdf's (30 or 40) and I need to fire them off to the networked Laserjet. Also, is there a way in VB, to set the "full duplex" (double-sided) printing option for an HP Laserjet (PCL6)?
View 2 Replies
Oct 1, 2010
I am having trouble finding a code for visual basic 2010 (or 2008) that will compile batch files to a .exe format. (So they can no longer be edited.)So far I've only found one program that does this (And was made in Visual Studios) and the program doesn't even actually work due to some unknown error. It'd be a great help to get a source code or just told that this isn't even possible.
View 1 Replies
Feb 5, 2010
The following .bat file runs through only once when the argument contains a star (*), but if I write out all of the arguments I get an ECHO and PAUSE for each one.Doesn't the star work for batch files? [code]
View 2 Replies
Jan 1, 2012
i have tried to apply this to the enviroment variable to be changed from batch files. I have tried to find an definite answers from spesific resource... Then the thing what i tried to be solved is like a obscure mist.
'Console.vb//console.exe
Module Module1
Sub main()
[code].....
View 2 Replies
Mar 11, 2012
I have created tool which performs batch processing on files that are selected. The sub routine I have defined in the code, now I want to implement a way through which I can select actions that I want to perform and then perform the actions. For example the list has multiple actions, like Open, Close, SaveAs, Resize, Color Correct etc. I should be able to select what all I want to do on each file and then perform this actions. Someone suggested me using delegates for this, but I cant use that since all my functions have different parameters. Ither option I had is to use a nested IfElse or Switch to determine which action is selected and call function according to it, but thats to heavy I think, is there any optimized a better way to do this.???
View 2 Replies
Feb 3, 2012
i have a problem with SetEnviroment function in VB.net. i have a small program created with vb.net and want to communicate with batch file changing the environment variables but as I mentioned in the below sample code is not running clear and while run.bat is running there is no effect inside batch file What might be the problem?
[Code]...
View 2 Replies
Sep 6, 2010
i want to make a program to run batch commands when I press a button
View 1 Replies
Jan 5, 2011
This time i want to kno dat how can i merge dos batch commands to a Button in vb 2008, remember one thing i dont want to redirect on .bat file. I just want to add bat command in button codes.
like i have created a button "PING" and if i click on that button the system starts to ping on that ip which i have defined in ping button like "192.168.1.1"
View 4 Replies
Aug 23, 2009
I believe there wont be any diff if user clicks the button on the form and the click event is fired OR if we call the button click event / function in the code. Because in one my project, this does make diff. If I click the button on the form, the App works great but same button if I click it thru the form code, the whole process crashes. This happens in Vista / VB.net.
View 12 Replies
Dec 21, 2009
I am wanting to make it so when you push a button, it will save the code in the RichTextBox as a Batch file.I want it to bring up the menu like it does when you hit save as.Here is what i have so far:
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
With SaveFileDialog1
.Title = "Save File"
.Filter = "Batch Files | *.bat"
[code]....
View 1 Replies
Aug 21, 2010
I'm making a program that takes common applications and installs them silently using batch files. Someone would select the programs they would want to install and my program will write a giant batch file and execute it to install whatever they want. Heres the problem, After the user selects the programs they go into either one or two lists. Non Silent Installer List Or Silent installer list.
Some programs I have simply won't go silently so from there they can choose in what order they want to install these programs. Then there is a combo box that tells weather you want to install non silent programs first or last. From there you hit add to batch file and it would add everything in listbox1 and listbox2 in order. Listbox1 would contain just the text "MalwareBytes" for example. Along with Novell Groupwise and Firefox. How do I get that to add to the Batch List as a code and in order? So the user wants Malware bytes added first to the batch file. How do I add that to my batch list as a completely different code?
[CODE]..............
View 8 Replies
Oct 13, 2009
By security reason I ask this... Can .cs or .vb files to run in any way without calling those in asp.net?
View 2 Replies
Nov 3, 2009
previously i have coded: Me.PictureBox1.Image = Image.FromFile(Application.StartupPath + "\JPG LandoltC" + filePath + ".jpg") where filePath is the function to locate the name of the pictures but now i have to put everything into the .exe to make it more "sightly" so now i'm trying Me.PictureBox1.Image = My.Resources.filePath and its not working.
View 6 Replies
Aug 15, 2011
I'm trying to call make visible an object, i can do this:
Button1.Visible = True
but, i was wondering if there is a way that i can call it like this. Lets say i have a variable 'OBJNAME' wich value is "Button1". What i want to do is to make visible the button like this:
OBJNAME.Visible = True
I want to do this because i have like 100 objects to show in the form and i dont want to code for every one of them.
View 3 Replies
Feb 24, 2011
I want to call the class radiostate by a button click on a form..Is this possible.. or should I rephrase it to say I want to call a function inside a class... either way im stuck.
View 3 Replies
Jun 3, 2011
i have cracked my brain to figure out on how to use if else statements in form1 to call button.click from another class.
View 14 Replies
Apr 19, 2012
I have two button as shown below:
1st Button:
<asp:Button ID="btn1" runat="server" Text="First Button" CausesValidation="False"
UseSubmitBehavior="False" />
[Code].....
View 3 Replies
Jun 3, 2011
Im trying to create a webform that is a representation of a paper questionnaire that has 14 questions with yes/no answers. If an answer is no, then you must provide information as to why in 3 separate textboxes and store the information only when a user clicks no.I also have 4 drop down lists that are chosen before the user answers the first question that also need to be stored with the textboxes, but the ddl's value does not change after the user starts. Right now I have 3 textboxes and a submit button for each of the 14 questions that are hidden until a user hits a "no" button, in which I change the visible property of all of them and the user then types in their reasons and submits the answer. I am currently doing this for each question and i hide/disable the textboxes and button after submitted.
My problem is that for each event on the 14 submit button's is that I'm forced to open & close an sql connection and insert the values. I know there has to be a way to simply this some so that I dont have 14 different groups of the same code. I would also like a way to eliminate having 40 textboxes on a page lol, because the idea was to have a pop up box or something open that would let the user submit it and then return to the question instead of hiding textboxes, but the user has to see all 14 questions at page load so if you got an answer to that one then that might solve my original question.
View 1 Replies