473,789 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

set file attributes for mobile device

I am trying to make a file I created a hidden file. I think I need to use
the setfileattribut e() but I cannot find it anywhere. I found this on msdn:
http://msdn.microsoft.com/library/de...attributes.asp
can anyone direct me in the right direction?
Nov 21 '05 #1
1 1801
Thanks, It is exactly what I'm looking for. You couldn't have made my day
any better. It is working great!

"Joseph MCP" wrote:

August 9, 2004

I don't have experience with mobile devices, but assuming
that they are the same...

You can use the IO.FileInfo(fil epath) class to change file attributes.
Then use FileInfo.Attrib utes = IO.FileAttribut es.Hidden.

Private Sub Button1_Click(. ..)

If System.IO.File. Exists(txtfilep ath.text) then

Dim iFile as New System.IO.FileI nfo(txtfilepath .text)
iFile.Attribute s = IO.FileAttribut es.Hidden

End If

End Sub

I hope this solves your question!
Joseph MCP
"Benjamin" wrote:
I am trying to make a file I created a hidden file. I think I need to use
the setfileattribut e() but I cannot find it anywhere. I found this on msdn:
http://msdn.microsoft.com/library/de...attributes.asp
can anyone direct me in the right direction?

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2378
by: John | last post by:
Hi We have an access db which records daily orders. We would like the orders to be downloaded to a windows mobile 2003 device via usb cradle. Drivers then take along the device and get signatures from customers when items delivered. Once drivers are back, the information to be synched back to the access db as drivers may have amended the order detail. How does one go about synching to/from mobile device? Are there any code examples...
3
9139
by: Sara | last post by:
HI, I want to code a program to detect GSM mobile (any kind) which connected through serial port to computer and then be able to send SMS through this mobile phone to other mobile phones, could anyone help me and guide me, I wrote a program which could open COM port but still couldn't detect mobile phone and send SMS through it. I searched internet and I didn't find right answer to my question. please if anyone could guide me. the...
1
7825
by: henrycortezwu | last post by:
Hi All, I'd like to transfer files from a Desktop computer to my Cellphone/PDA using VB.NET I've research a bit on this, and I found that I would need to do it using OBEX via Serial Bluetooth COM Port. I've read that using OpenNetCF Serial component will make things easier coding things up because as of the moment there is no Serial Component on the .NET Framework.
1
3166
by: tobesurveyor via AccessMonster.com | last post by:
Hello all, The program I am creating takes certain files found on a Pocket PC and places them on a specific directory on a network drive. It is automated in the transfering of the files, and in recording in the database the paths the data were saved to. When I demo the application using example files on different network drives it works great, but when I try to explorer to my sync'd Pocket PC, there is no drive called "Mobile Device"...
2
3487
by: opswat | last post by:
Hello, I am currently working on a C++ project for a PocketPC with Windows Mobile 5.0 in Visual Studio 2005. I am currently looking for a way to get file version information, i.e. file version, product version, file modified date, file creation date, etc. The only way I could find was using the functions GetFileVersionInfoSize, GetFileVersionInfo, and then VerQueryValue, but when I ran it, it gave me an error saying: "The specified...
4
3662
by: Robert Iver | last post by:
Hello everyone, I am trying to create an application that utilizes a SQL Mobile database. I have included that database in my main project, and it compiles and debugs just fine. I then created a custom installer project packaged as a class library and made an installer project to wrap the whole thing up into an MSI package. Basically the idea behind doing all this is so the handheld app can be pushed out through group policy.
1
1798
by: Jeff | last post by:
Hey asp.net 2.0 I wonder if it's possible to have both standard asp.net and mobile asp.net in the same web application. When the web server gets a request it can detect if this requested comes from a mobile or not???. Maybe there is setting in web.config specifying the default page if requested by a mobile phone???
0
2506
by: AmyHanson | last post by:
I am new to mobile development and am having some trouble sources for the tasks I need to perform. I have been looking around and I can find plenty of information on copying the file initiating on the PC end, I need it to initiate on the Mobile Device end. I need the handheld to be the device that is initiating the file copy as it is the only one that knows the name of the file(s) to be copied. I have found numerous references to using RAPI...
0
2479
by: tthkbw | last post by:
I am writing an application and have the need to open files that exist on an ActiveSync connected Mobile Device (in this case, a PocketPC, could be a SmartPhone). When the mobile device is connected via ActiveSync an I open Windows Explorer, under My Computer, I see "Mobile Device" and can browse files on the PocketPC. However, in my C# code, when I open a FileDialog, "Mobile Device" does not appear under My Computer.
7
3254
by: cj2 | last post by:
I saw a MS demo a few years back where they developed a web page and the software automatically rendered it for different devices. Is this what I'm looking for? http://www.asp.net/mobile/ Much of the info looks old. I have a MSDN account where can I download it or is it already in VS 2008 and I just don't know how to find it? I'm mainly interested in having simple pages render in Internet Explorer
0
9663
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9506
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6761
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.