|
Only trouble with using usb sticks, more and more corporates are disabling the ports to prevent unauthorised copying - particularly in the UK where there have been some high profuile data losses due to usb sticks. In my current client company any device plugged into a usb port gets automatically encrypted - not good for your ipod!
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Yeah but these sticks don't actualy hold data (from the company) they just hold a key and the program checks if the stick (so the key) is present.
The sticks themself can't be accesed so no data can be placed on them.
And I just found out that it's possible to have only 1 stick for an entire network so the stick could be plugged into a server in the server room that normally should be secure
Ashfield wrote: In my current client company any device plugged into a usb port gets automatically encrypted - not good for your ipod!
But but what will you listen to then
|
|
|
|
|
Hi,
You can have a separate table in your database that stores the processor ids of your machines that are allowed to run the app. Have the app check against with those ids in the database before running.
If you want more details,have a look at this article.
http://www.codeproject.com/KB/vb/hardware_Security_2.aspx[^]
good luck.
Believe!Success is always yours.
|
|
|
|
|
Hi,
I am using FtpXObjLib(Mabry Internet FTP/X COM Object) for copying a file from my computer to an FTPLocation. I am using below code for it
Dim objFTP As New FtpXObj
objFTP.Blocking = True
objFTP.Host = "ma****-1.corp.seic.com"
objFTP.LogonName = "*******"
objFTP.LogonPassword = "*******"
objFTP.Directory = "C:\Aleem"
objFTP.Connect()
objFTP.GetFile("Sample.exe", "myfile.txt")
As I have not been given the FTP location where to copy right now, I am testing the code with my compter as
objFTP.Host = "ma****-1.corp.seic.com"
when I run the application, it is passing from the statement
objFTP.Connect() so may be it is connecting using ftp, but giving exception at the statement
objFTP.GetFile("Sample.exe", "myfile.txt") .
And the exception that I am getting is
'System.Runtime.InteropServices.COMException' occurred in SampleXceedZip.exe
Additional information: Invalid socket or not connected to remote.
Can anybody please help me to complete this task. In any way by giving a small code snippet or any links.
If any other .Net component is also available to do this task is also acceptable, if it not is not effecting the performance.
Thanks a Lot,
Aleem Mohammad.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
modified on Thursday, November 27, 2008 8:13 AM
|
|
|
|
|
Just a quiffer but maybe youre in the wrong directory / you have to fully qualify the filename with the directory?
What the hell is a quiffer...
|
|
|
|
|
I think you shouldn't be specifying any kind of drive letter specification in the Directory parameter. That should be the directory path on the FTP server, which won't expose any drive letters to you.
But, then again, since I've never used that library, I have no idea if that's true or not.
|
|
|
|
|
Agreed, don't most ftpd's store the ftp root in a config? That mean's (guessing now) you shouldn't have to specify any drive letter...
With any ftp'ing I've done (used .NET classes, never another third party addon) I never had to specify a drive....
|
|
|
|
|
Yes, I got it connected. Thanks for the help. But I am unable to copy the file from my location to FTP location.
Can anybody pleas help me in this. The below given is the code I wrote. Very much thankfull to you please help me in this. I tried with the put file and getFile both are not working can please anybody help me. I would be thankfull to them
objFTP.Blocking = True
objFTP.Host = "ssbse****"
objFTP.LogonName = "z***"
objFTP.LogonPassword = "Od***"
objFTP.Connect()
Label1.Text = objFTP.StateString
objFTP.GetFile("\\ssbseiathftp\Fileserver\Sample.W02", "\\ssbseiathftp\Fileserver\Sample1.W02") '''I am getting problem here
'objFTP.GetFile("C:\Aleem\Sample.W02", "\\ssbseiathftp\Fileserver\Sample.W02")
Thanks a Lot,
Aleem Mohammad
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
modified on Friday, November 28, 2008 2:21 AM
|
|
|
|
|
Well I assume GetFile saves a file from the location on the server to your machine, and you don't have a drive \\ssbseiathftp...
put it in a try catch and get the error it is giving you and post it
|
|
|
|
|
Why are you using the same path twice?? It looks like takes a source and destination path. The source would be the path that the FTP server makes available and the destination what file you want the file copied to on your machine. It plain old will not work if you specify the exact same path for both the source and destination filepaths.
Also, you seem to be under the impression that an FTP server makes the entire harddrive of the server available to you. This is NOT the case. You can only go to and use the files/folders in a subdirectory of the server that the FTP Server manages and makes available to you. You can NOT use just any path you want on the server and expect it to work.
|
|
|
|
|
I want an input from UserForm1 to be a Number.
I want to carry that number into UserForm2.
If, say that figure was 3, then I want either...
Three TextBoxes to open/be visible, OR
I want to ask for input on the Same TextBox 3 times, assigning each value to an array.
What I have at the mo is this...
UserForm one has a Text box asking for tbNumberOfUnits, and an Enter Button.
On Enter it checks that the value is a number not text, throws exception.
Assuming it is ok, it calls UserForm2 by "UserForm2.Show"
There is a CommandButton Begin on UserForm2
At this point I would like the value of tbNumberOfUnits to be called, but it appears not to exist in UserForm2.
Also, How do I create TextBoxes to the Desired amount?
Any help/pointers would be appreciated, I have checked a couple of books and can't seem tofind what I want, and also feel I may not be asking the right questions from Google.
------------------------------------
We hang the petty thieves and appoint the great ones to public office.
- Aesop
|
|
|
|
|
Hi,
Based on my understanding you want to pass value from one form and generate textbox dynamically.So you can have a global variable and store value in tat variable from userform1.and in the page load of userform2 generate as number of textboxes dynamically using for loop.Otherwise get input as many times and get in an array.Store the values in the DB by using arr(0),arr(1)... like that.
pls free to ask again if i have misunderstood your problem.
Believe!Success is always yours.
|
|
|
|
|
That is it in a nutshell.
------------------------------------
We hang the petty thieves and appoint the great ones to public office.
- Aesop
|
|
|
|
|
can you give me your requirement with your code
Believe!Success is always yours.
|
|
|
|
|
I want to know how to make the following
1. What is the best to use for this txt or database.
2. If I have a question eg. "What animal eat grass". It must give me an answer with 1 or more possibilities eg, cow, springbok eg.
3. Then if I have a another question, "What Animal give us milk, it must also show "cow or more it the is.
4. I want to add new questions and answers,
5. A question can have a lot of answers
6. a answer (cow, eg) can have a lot of questions.
7. what is the best way to do this,
8. IS there a sample of how to start this.
|
|
|
|
|
Use the database for storing Data.
label for asking Que.
Checkbox when the ans is more then one.
optionbox when the ans is single.
|
|
|
|
|
Use a text file. That would be funny.
( seriously, use XML or a DB )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you, I am going to use a database (Open office).
Do anyone have some sample code on how to start with this program.
|
|
|
|
|
open office ? Why ? You should use SQL Server Express, it's free and it's well supported in .NET.
It's an easy task, you just need to design your DB to associate questions and possible answers, then write code to step through questions.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Thank you, I totaly forgot about Sql, did not work with it before,
Can I use Sql when I am finshed with my project, on other Pc that does not have sql on it.
I am new to this, that is why I sam looking for sample code to start me off.
|
|
|
|
|
hendrikbez wrote: Can I use Sql when I am finshed with my project, on other Pc that does not have sql on it.
Shure like Christian said the express edition is free so you can install it on the pc (or include it in your setup to install together with your program)
|
|
|
|
|
Hello,
VS2008 SP1
<br />
Private Function IsPortAvailable() As Boolean<br />
Using sock As New Socket(AddressFamily.InterNetwork, _<br />
SocketType.Dgram, _<br />
ProtocolType.Udp)<br />
sock.Connect(VaxSIPUserAgentOCX.GetMyIP(), 5060)<br />
Return sock.Connected<br />
End Using<br />
End Function <br />
Using this code I thought I had this problem solved. However, after testing I have found that the socket always connects. Even if the port is being used by another application.
The port I am checking is 5060 UDP. My application when it starts will check if this is available. If another applications is using it. i.e. SJ Phone etc. The application will inform the user.
However, the socket always returns true. I have checked this with netstat -aon (cmd) and I can see that the port is being used.
I am checking the port on my local computer. So my IP address is 10.10.10.120. Under the netstat I can see this 0.0.0.0:5060. Why all the zeros. Could this be part of the problem
Is there another method for checking this?
I have looked at udp client, and wondering about winsock.
Thanks,
|
|
|
|
|
How to create VS2008 / Office 2007 style menu (raised selection when mouse focused)
when I create windows application menu the selection comes as flat style
Saseendran Kombath
|
|
|
|
|
You typically need to buy a commercial library to get Office style UI.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Does anyone know of where I can get some help on creating excel addins that connect to a sql 2005 database using VSTO?
|
|
|
|