Thanks now the problem has been solved.
Thanks now the problem has been solved.
Ok Now I get what you'll saying that I should specify the name of the file when it is copied now the problem is how can I keep the same name or original name as from source where the user chosen the file from? E.g if the file is located in Desktop for instance and the file name is test1.txt and the user browse to this file and select it to copy it to C:\example how to keep the same name test1.txt to the destination? Keep in mind that the path to the file will only be determined when the user Browse to the file so I can't write manual the path to the file because I don't know where the user will browse to for files to copy to the folder example.
Hi Dw
I'm trying to copy a chosen file to a directory under 'C:\example' directory folder, I have a textbox to store the address (path) to the selected file, a OpenFileDialog to enable the user to browse to the file to copy and also a FolderBrowserDialog which let the user browse the folder he would like to copy. There are 2 radiobuttons which are for determining which tool to use for browsing between the Folder and a File Dialog so the first radiobutton if it checked the system will use the OpenFileDialog and if the RadioButton2 is checked then the system will us the FolderBrowserDialog. I have two buttons the first button is for browsing which works fine and the second button is for copying the chosen file to 'C:\example' so now when I try to copy it just produce this error
"Could not complete operation since a directory already exist in the path 'C:\example'."
The folder example is created by this program on a first time execution so I don't want to delete it because it may contain the user files which the user has copied so I want to add item to the folder. Here is the code I'm using:
If My.Computer.FileSystem.DirectoryExist("C:\example" Then
My.Computer.FileSystem.FileCopy(TextBox1.Text.ToString,"C:\example")
' This produced the above error and I tried to swap around like below and I got the following error.
' Note that below I commented the above code of copying a file to use the below.
Dim Dest As String = "C:\example"
Well I haven't done this but I think to get the list of Containing words I think you can loop it like use the For Each contain word and also if you are using a listbox or textbox you can set it to multiple lines so that if the word you want shows up you can click it. also for auto show the matching words while the user type I think you can trick it by using a timer that means you will put your codes in timer or use the Textbox KeyChange event handler so as the user types each alphabet it will display the matching words remember to use the For Each Loop to get the list or collection of matching words.
@me655321 thanks but I've already found a solution thanks again for your post.
@Reverend Jim the solution I've found is at: www.dreamincode.net/forums/topic/94406-global-hotkey/ but I was having this on my program but it was giving me problems when I was calling it but after reading this post I saw that I was calling it the wrong way and this showed the right way.
Thank you all with your positive posts this case has been closed.
Look if you feel you don't want to help please do no comment here please find another post to raise you post at not here, I said this program has multiple forms which the USER (maybe that wasn't clear to you) will use to set the functionality and activate and deactivate features so I don't know which part says I'm making a keylogger in this application if you wanted to know or perhaps steal my idea you should have asked not making everyone thing the bad side, this will be interacting with the user and the user will be the one who activate feature like Cloud backup by pressing these combination keys that I'm asking about here.
Well what I was looking for was Global Keypressed detection and I think I've found the solution.
Hi Dw
I'm working on a program which has many forms and these forms are for setting the functionality of this program so now I want to detect if, let say Shift+F is pressed then the appropriate form will show. I don't want to use the Form_KeyPress or KeyDown or KeyUp because this form won't be visible to the screen so I want even if a user is let say opened a word processing program if the user presses these keys in combination the appropriate form will show up.
Thank you.
Thank you and yes I'm sure. So I can't write a program for this device in any other language like java? What if I install the jave embedded device which comes with a JR to execute java files?
Hi Dw.
I want to write the program for VeriFone device that will read the cards, this device has 2 types of readers the one reads the chip and the other is for magnetic strip reader so I want to write a program that will listen for both readers and for each in used reader it will be processed. The program will be embedded in to the device. I have Eclipes and I've installed the Java Card Development Environment on my environment. I haven't started this project because I don't know where and how to start it any help, suggestions are highly welcome. The device is a 32 bit and has 8 MB memory
Thank you.
Change Me.Close() to Me.Hide()
No. It a program that check if a certain key on a keyboard has been pressed and hold to execute the command. Just like let say on your program you want to add a feature and in order for a user to execute or use that feature he/she will have to press and hold a certain button. That is what I wanted but anyway I've just managed to solve it my self thank you.
Hi Dw
I'm creating a program in Visual Basic 5.0 and what I want is to listen to keyboard keys the main form that I will be using to listen to the keys will be hidden so that is my problem to detect the keys while the form is hidden.
Anyone have an idea of how can I go about doing so?
Here is a very simple example on how to use the Contains method.
If TextBox1.Text.Contains("my word") Then ' Here you can replace the my word with the library of your words where you have the collections of words that you want to see the word if it match.
MsgBox("The item is found")
Else
MsgBox("No item found")
End If
Now to test this create a new project and add a text box and a button and type the above codes in a button click event the debug it and key any word you like in a text box and click a button you will see that the item is not found now type the word my word in a textbox and click the button now you will get a message that the item is found so that how you go about matching the contains from a tool
Well I've just managed to solve this problem I've used this
Call Shell("Java.exe -jar c:\test/dist/test.jar") and it debugged well Thanks to my self for this.
Well you can try something like this assume that you have a textbox called txtPass where the user will enter his/her password
If cboUser.SelectedItem = "user1" And txtPass.Text = "user1" Then
Me.Hide()
frmSalesData.lblTime.Text = Time.Now ' not sure of this if Time.Now produce error try DateAndTime.Now.ToLong or something like that I'm not infront of a computer as I'm responding.
frmSalesData.lblUser.Text = cboUser.SelectedItem
frmSalesData.Show()
Else
If cboUser.SelectedItem = "user2" And txtPass.text = "user2" Then
' Do the same as above and continue with the remaining your self.
End If
End If
You can put these codes in a button event. As you can see you will have to do the rest the same way I did it but I didn't do it all due to time.
Well I'm not sure in VB because I was also looking for the same or similar to that and I've looked on Microsoft POS but it not clear what or how to work with those then I also tried JPOS which is java it also gave me problems till I created my own java code to dispense well my case was dispensing cash out of the dispenser device to the use. But in JPOS I did see the classes with CashDrawer on opening and closing it so I think the easy and quick way is to try check that out and try to see the Methods so that you can write your own class to control the drawer because in Microsoft I didn't find solution and support in this kind of scenario.
Hi Dw I'm glad to find one active VB forum for the old VB I used to get the solutions in .NET and I'm also a .NET developer but had got a problem the computer that I'm creating this application for is using old Windows OS such as XP and the most of them uses Windows 2000 so the .NET application is not supported so I'm recreating this application in VB 5.0.
The program is simple it just execute a jar (java) file using a console and wait for the user to choose the exit option which closes the whole console so here is how to call it manually in a cmd.exe
Java.exe -jar c:\test/dist/test.jar
That is all I want to call so is there anyone know how can I, I'm sorry but as I've said I'm a .NET developer I don't know how to start or where to start in VB5.0 so your help will be appreciated.
Thank you.
Well there are a couple of programs I've created in VB.NET they work perfectly on my laptop or OS(Windows 7) but I can't run them on an older OS such as XP so I know that the programs created in VB5.0 they work in any Windows OS haven't tested on windows 8 but I do think it will work too so my point since you said I don't have to go back to VB5.0 to create the standalone exe program how can I make my program that I created in VB.NET to run on old OS like XP and if the problem is with the installation then how can I make it a standalone exe program and run in XP and windows 2000 and other old Windows?
Thank you.
@James thank you so much for your link I've done it and well I just found out that actually I didn't need the interface to dispense after I read that this 'public void dispenseCash (Money amount)' is what will dispense cash to the client ie it will take out the required bills to the user.
The reason why I'm locking the folder is that I don't want the user to manually have access to the contents of the disc so let say if the user insert the disc into a stereo so the program will not function because the stereo doesn't have the capability to execute the programs so the contents in stereo will not be locked so that the stereo can read the contents but a minute a user inserted in to a computer the program will then lock the files so that the user will not be able to manually use this or view the contents in the disc so there will be a program installed in a computer that will be the only program that will have the permissions to access the contents inside the disc.
But remember not to ever plug your USB on that computer that infected you with this virus. According to my finding of this virus it is created by a Greek they also have their website but then it was impossible for me to read because they used the Greek language there, but when I examined this file that is a virus which is a '.vbe' that where I found the address but because is coded with the VB that specialize in '.vbe' extensions. So I'm still working on the way of permanently removing it from the removable.
So if you have found a solution you can mark this thread Solved.
Hi Dw
I was working with VB.NET but then the problem occurred so I decided to change this project to VB 5.0 because that where I can make this program a stand alone executable file, this program will be embedded on a Disc (CD/DVD) so now what I want is to disable a user from viewing the inside contents so I want to remove these items when you have inserted this disc and right click the disc I want to remove:
1) Open
2) Open in new window
3) Format
4) Erase this disc (because I'm working with the re-writable
Any one know how I can achieve this even with a vb script if it possible.
Inside a disc I have an Autorun that execute a program that is embedded inside this disc.
Thank you
Well at the moment I'm highly do recommend that you do so, also from now on till I'm done with this program when you want to open a memory stick or removable media like phone or anything like that you have to use a program called Recuva do not open the removable but just recover the file that you want to copy so that the same virus won't spread again, that program is the best.
Well what I've found out is that this type of virus is located in the root file of a removable like in a mobile phone it is in 'C:\' of a removable and I've managed to trace it but the problem is that I failed to go to the root file of a removable, so I'm still doing a research on how I can get hold of the removable media root file because the file that makes these shortcut is located there and even the antivirus can't detect it they only remove the created .ink files only but not the creator of these files so as the deletion do on this file the creator recreate the file again so it just be pointless to scan and remove using antivirus even the shortcut virus remover they fail to identify the creator or the main virus they only detect the created files which are something.ink so as soon as I'm done with my removable media virus remover will then updates you.
Well what I want is to detect the device and I want to handle the devices differently or the simply way be creating a program or some sort of script that will be executed when the disc is inserted to a computer or in these stereos, but I think I will have to get back or carry on in VB.NET because I just got another idea of doing this since they said the dvd/cd players doesn't have a jvm installed so i will just try it with the new idea I just thought.
Now we've only spoke about DVD/CD/ players and Stereo but no one mentioned the playstation since I think it capable of executing a program but I think it has a library of format which it supports, because with my understanding a game is a program too so the playstation is capable or reading from a disc and it can write files to memory card and it can also create files so I'm not sure whether to treat it as a computer or, any idea?
The reason why I ask is because I want to know which devices are capable of executing programs too so that I won't limit my self in this project. the devices that are capable of reading or executing programs from a disc will be treated differently because they will have to perform some tasks to accomplish tasks. I won't provide much details towards what my project for security reasons I will be more …
To me you sound infected so I strongly suggest that you get at least a latest anti-virus software, but according to your story the virus that is infected to your computer is the virus that changes the open with and it direct it to open from a usb it was set to look no else where but only on usb so I'm not sure how you can get ride of it but first try to get how it is created by searching on google, your problem is not VB.NET related but you are infected so I strongly suggest that or just reboot your computer that how I get ride of it too
Ok not what you'll saying is that it not currently possible ok that cool.
@Stultuske you said that java is not an appropriate language to do this I will have to communicate with the hardware, so how can I communicate with it to achieve at list the similar to this and also which language is appropriate for writing something like this?
Also I've just thought of another way but now the problem that rises it that there are stereos like car stereos that has an allocated storage memory these stereos are capable of copying the disc to the stereo memory and they can also burn or write the files to the disc so I'm sure these stereos are more computerized so I think since they can run a disc copier program and disc burner program they can maybe execute codes but I think on a limited or fixed processor. So how can I in these types of stereos
Hi guys
I've never worked with script before and I'm not sure but I think the solution around my problem will be in script but don't take in mind that yet as I said I've never worked with script.
I have a DVD+RW I want to burn or embed a program inside the disc that will be able to determine or detect the type of player(device) the disc is inserted in, I have these list which I want the script or the program as a disc manager to handle these devices differently but there will be two types of handling one is to copy a folder inside this disc not the program but the folder because there will be a folder too that will be added to the disc, so the 1st handling will be copying a folder to a temporal file in 'C:/temp' (this will be the handling of a CD/DVD Rom or writer ie a computer) and the 2nd handling will be temporary unlock a file so that the contents inside can be used by a DVD player device ie home theater,playstation , and car stereo this can do it like this:
While the folder is temporary unlocked if the power on a device run out then it should get back to default and lock the folder,
If the user eject the disc then it should lock by default the folder, this can be like destroying the temporary unlocked folder so that it will remain the locked folder, …
Hi Dw
This is my second time asking this question but now I will just make it straight forward because I didn't get any response from my other question.
I want to know how can I write a program or a script in java that will be burnt/embedded to a DVD+RW disc to detect the type of player(DVD player, Car stereo, computer(CD/DVD ROM or Writer), playstation) I want the program or script that will be embedded in a DVD+RW disc be able to detect the device the disc is inserted in, let say when it has detected the device for testing it will return either a device type name to a file or any method which will state that the disc was inserted on this device that will be for testing, what I want it to do is threat each device differently.
Thank you
I think you have to specify what or from which field you are referring to in that table because I think your code indeed will return zero or exception because you just specified the table but didn't tell it to look in which field in a table.
Well the simple way for this will have to be getting the user information be for he/she can vote something like Registration first be for vote can help you to identify if the user has already voted or not, you can automatically take or store his MAC to a file and store also his username, location etc but you need to get as many information as possible and then when authentication the user you can check if the MAC, USERNAME, PASSWORD etc has already been saved if this information or some of this information has been already been saved then you know that this person has already voted so you can deny access from his either display message stating that it seems as if you have already being voted before. That will help you solve your problem
Is the returnValue not null?
You will have to us a text file to store your values, here is how you can do it because according to your main post you want to first by default write a default value to the file then when you deploy the application it will update the saved value with the current value and when you transfer the file(your program) to another location when you debug it there you want it to not create the new one or show you the default created value but rather the last value that was saved when you deploy or debugged the application in desktop so to do so I will strongly suggest that you use a text file or any other file it can be a database or what ever you feel like using and you will have to add it to your application resources inn VB.NET and to write to it you can use streamReader and StreamWriter to call or refer to it.
Also as this program will be governing the disc it has to prevent or un-allow formating of the disc as it will be a RW disc
Hi Dw
There is a project I'm doing but I'm doing it in VB.NET I want to know now how can I write a program in jave that will govern the CD-RW and if the disc is inserted on let say a DVD player the program will detect that the disc is inserted on a dvd player and if the disc is inserted on a playstation it will also detect that now it is running on a playstation and lastly if it is inserted to the computer/laptop it will detect that now it is inserted on a pc, I know that java is powerful and I think it can do this task just the detection at this point I need.
Any one with an idea on how I can do this?
Thank you I will vote up with a computer because at the moment I'm using a mobile phone to post threads and there are lots of options which are not visible on this forum such as voting up (it is visible but when I clicked at it, it do nothing I think the problem is with the browser that I'm using on this phone) and the code format panel is totally invisible on my mobile phone.
Thanks again
Wow thanks dude with that program that was what I want that the permissions can not be changed so now I have four questions regarding your program to meet my intentions,
1) I noticed that while the folder is locked it can be deletedm My first question is that how can I make it undeletable.
2) How can I read the contents inside without unlocking it.( I know this will sound confusing so at the moment just ignore this I will explain later what I mean by this)
3) The contents inside the file, If I burn the folder while protected to the Disc like DVD or CD can I be able to unlock it later or perhaps copy it from the disc while it is protected to my computer and the unLock the file to view the contents let me say I got Two computer the 1st computer is the computer that I burn the locked file to the disc with and the second computer is the computer that I want to copy or open the protected file at so that I can view the files inside the protected file I know that on the second computer I have to also have the program to unlock the file so let say I already have it running on that computer.
4) How to make the protected file uncopied?
Thank you again.
Thanks but what I want or meant is that I'm creating a program in VB.NET that creates a file (Directory folder) and I made it protect the file or folder from being opened or accessed right. Now when I debugged the program indeed it created a file and then I go to it manually to test if it will be opened and I tried opening it and because I've protected the file with permissions it then gave me a message stating that I don't have permissions t open this file right. Now I tested it to see if a user can manually change the access permissions and I right clicked the file and go to properties and clicked security tab and clicked Advanced button and on the opened panel under Permissions entries I selected the account or user that has Deny under type and clicked the button Change Permissions... And I also select the user that has a Deny under Type on the opened panel and clicked the button Edit... Than the panel Titled Permission Entry for mytestfiled because I've protected this file with permissions the Deny Permission is the one being ticked here so I chosen Allow and it then ticked it and I click Ok and on the shown panel I clicked Appy and Ok and also on the other panel I clicked Ok and the same with the last panel that I've opened I Clicked Ok and I try to open the file again that was protected …
Hi Dw
I'm working with permissions in my program I want it to protect the chosen file by permissions and now what I want is how can I make these permissions unchanged by a user? Or if not possible because I don't want even the administrator to change these permission for the security of the file or contents it will be holding, or maybe after I protected the file with the permission and it a user or a program want to modify or open the folder the system not just only my program request an access password which will be served on a file if the password does not match the application password then the user or that particular program that try to open or modify this file will be blocked from performing that task. Any one know how can I solve this problem?
Ok thank you, will mark this thread answered now.
I've just reAsked the question and I've got what seems to be helpful for the sake of someone who is also looking for the same solution here is the link to my other thread that is helpful.
www.daniweb.com/software-development/vbnet/threads/467605/make-a-system-application
Thank you I've looked at that link with that walkthrough it sound like what I'm looking for indeed so is it also possible to set the Hide Attribute on this type of application? And also the tutorial talked about:
To uninstall your service
1. On the Start menu or Start Page, open the
shortcut menu for Developer Command
Prompt, and then choose Run As
Administrator. I'm kinder get lost when they say open the shortcut menu for Developer Command Prompt, are they referring to the normal command prompt or? That where I got lost and decided to ask first than try it out.
Thank you.
Hi Dw
I'm currently doing a research in how to create a system application file, the program that I'm creating will be visible to screen only when it has been called by the user other then that it will be running but doing nothing other then waiting to be called. So what I'm having a problem with is how to make a system application in VB.NET I want to publish it as a system file and when it installs it can install as system file because I don't want it to be visible at Installed programs tray or explorer just like the system file for example if you will remember your computer when you bought it, when you turned it on without installing any application and go to 'Control Pane -> Uninstal program' the explorer will have nothing because there are no applications that are currently installed but note that the system files(applications) are there in a computer running but they are not shown to this explorer so what I want is to make my application be that type of system file which is not displayed under the installed application, I've came across with this code snap and this code change the text file to system file but what I want is to make this program I've creating a system file not other external file but it self.
Anyone know how I can go about doing so?
Dim attribute As System.IO.FileAttributes = IO.FileAttributes.System
System.IO.File.SetAttributes("file1.txt",attribute)
sorry for not …
You can try this www.dreamincode.net/forums/topic/300487-creating-sql-server-stored-procedures-and-using-them-in-vbnet/
Ok, so is there any one know how to configure wamp to support the ASP I know that there is some file you need to download and install in the apache which is ASP.NET module but I don't know how to install it. Thank you
Thank you so much guys, now I just have one more question, on how can I save or recognize the user by a WebBrowser just like how DaniWeb remember my WebBrowser once I've typed www.daniweb.com on my phone it then go to daniweb and because I've never log out using this phone it still recognize me and load by account, so how can I do the same on my clients if they haven't logged out still process user their names?
Thank you again, will only mark this thread answered when I get your response.
Hi Dw
I'm working with ASPX.NET under VB.NET, I've created some pages one is registering the user domain that the user want to register like "www.mydomain.com" and once the user clicked the button then his domain is registered to the server and then he/she will then be transferred to another page where he/she will then register an account so that he/she will then be able to manage and upload files to his domain, now on the domain register page there is a textbox where the user will enter the his domain that he want to register and there is a dropbox which the user will use to choose the extension (location) to complete his/her domain e.g(.com) then I combine the textbox and the chosen extension which then complete or make up the full domain which is also the user username now on the server the system creates the folder named the user domain which inside will be the users files or web files and inside the domain file there is a file I created called user which contains all the user details and picture so that when the user logs in the details will be retrieved from here now the problem I'm having is to pass this domain name to the page that the user will be transferred to after registering the domain so that he can create an account so I want to retrieve the domain name from the domain registry page, normal in windows form application in VB.NET …
I've just used the .Contains() method I think in order for you too to match the in between you have to use the Contain() method and inside the () you have to enter the library of your collections of your match list to match it up. Hope this will answer your question this keep track of your text box till the word in contain is entered it will then start to fire the correct commands.
@James thanks, I did look at it before and I read from the start to the bottom of that article this is what made me said it like the article is talking about User Interface (UI) "Methods form the
object's interface with the outside world; the
buttons on the front of your television set, for
example, are the interface between you and the
electrical wiring on the other side of its plastic
casing. You press the "power" button to turn the
television on and off." But then today I just reread it and looked it closer I think I get what is meant it just that the example is confusing but I think I get how I will go about this interface, will update this thread about the outcomes if it do work or not, thank you again.