I am try to convert the following routine into C#
dim oFSO
set oFSO = CreateObject("S cripting.Filesy stemObject")
dim sHomePath
sHomePath = '\\server\c$\ho me\'
dim oFolder
Set oFolder = oFSO.CreateFold er(sHomePath & 'BOB')
What should I use instead of the filesystem object?
Cheers
Bob 5 18940
"Bob Miller" <so*****@micros oft.comwrote in message
news:ey******** ******@TK2MSFTN GP05.phx.gbl...
>I am try to convert the following routine into C#
dim oFSO
set oFSO = CreateObject("S cripting.Filesy stemObject")
dim sHomePath
sHomePath = '\\server\c$\ho me\'
dim oFolder
Set oFolder = oFSO.CreateFold er(sHomePath & 'BOB')
What should I use instead of the filesystem object?
I don't know if you're looking for this or what. http://preview.tinyurl.com/2akps5
"Mr. Arnold" <MR. Ar****@Arnold.c omwrote in message
news:eQ******** ******@TK2MSFTN GP04.phx.gbl...
>
"Bob Miller" <so*****@micros oft.comwrote in message
news:ey******** ******@TK2MSFTN GP05.phx.gbl...
>>I am try to convert the following routine into C#
dim oFSO set oFSO = CreateObject("S cripting.Filesy stemObject")
dim sHomePath sHomePath = '\\server\c$\ho me\'
dim oFolder Set oFolder = oFSO.CreateFold er(sHomePath & 'BOB')
What should I use instead of the filesystem object?
I don't know if you're looking for this or what.
http://preview.tinyurl.com/2akps5
I'm actually trying to do the same thing as "Active Directory Users &
Computers" does when you use the "%username% " variable in the home drive
definition of a user account.
But this article might be helpful in starting me down the right path
Cheers
Bob
Hi Bob,
The functionality you're looking for is in the System.IO namespace. To
create a directory, you can use Directory.Creat e(string path).
Regards,
Bram
"Bob Miller" <some...@micros oft.comwrote in message
news:ey******** ******@TK2MSFTN GP05.phx.gbl...
>I am try to convert the following routine into C#
dim oFSO
set oFSO = CreateObject("S cripting.Filesy stemObject")
dim sHomePath
sHomePath = '\\server\c$\ho me\'
dim oFolder
Set oFolder = oFSO.CreateFold er(sHomePath & 'BOB')
What should I use instead of the filesystem object?
I don't know if you're looking for this or what.
http://preview.tinyurl.com/2akps5
I'm actually trying to do the same thing as "Active Directory Users &
Computers" does when you use the "%username% " variable in the home drive
definition of a user account.
But this article might be helpful in starting me down the right path
Cheers
Bob
Thanks Bram
"Bram" <b.*****@gmail. comwrote in message
news:11******** **************@ z28g2000prd.goo glegroups.com.. .
Hi Bob,
The functionality you're looking for is in the System.IO namespace. To
create a directory, you can use Directory.Creat e(string path).
Regards,
Bram
"Bob Miller" <some...@micros oft.comwrote in message news:ey******* *******@TK2MSFT NGP05.phx.gbl.. . I am try to convert the following routine into C#
>dim oFSO set oFSO = CreateObject("S cripting.Filesy stemObject")
>dim sHomePath sHomePath = '\\server\c$\ho me\'
>dim oFolder Set oFolder = oFSO.CreateFold er(sHomePath & 'BOB')
>What should I use instead of the filesystem object?
I don't know if you're looking for this or what.
>http://preview.tinyurl.com/2akps5 I'm actually trying to do the same thing as "Active Directory Users & Computers" does when you use the "%username% " variable in the home drive definition of a user account.
But this article might be helpful in starting me down the right path
Cheers
Bob
Now that I can add in some more permissions, I need to modify some of the
inherited permissions, but only for this directory
How do a copy the inherited permissions, and then stop inheritance (this
should let me modify the permissions)
Thanks Heaps
Bob
"Bob Miller" <so*****@micros oft.comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Thanks Bram
"Bram" <b.*****@gmail. comwrote in message
news:11******** **************@ z28g2000prd.goo glegroups.com.. .
>Hi Bob,
The functionality you're looking for is in the System.IO namespace. To create a directory, you can use Directory.Creat e(string path).
Regards, Bram
>"Bob Miller" <some...@micros oft.comwrote in message news:ey****** ********@TK2MSF TNGP05.phx.gbl. .. I am try to convert the following routine into C#
dim oFSO set oFSO = CreateObject("S cripting.Filesy stemObject")
dim sHomePath sHomePath = '\\server\c$\ho me\'
dim oFolder Set oFolder = oFSO.CreateFold er(sHomePath & 'BOB')
What should I use instead of the filesystem object?
I don't know if you're looking for this or what.
http://preview.tinyurl.com/2akps5
I'm actually trying to do the same thing as "Active Directory Users & Computers" does when you use the "%username% " variable in the home drive definition of a user account.
But this article might be helpful in starting me down the right path
Cheers
Bob
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John Dewbert |
last post by:
*** post for FREE via your newsreader at post.newsfeed.com ***
Hello,
I have trouble passing a folder object (from a FileSystemObject) to a sub
procedure.
Consider the following code:
=================================
|
by: Steve |
last post by:
Hi all,
FileSystemObject question...
I'm trying to check if files exist or not, but the files
are not sitting on the same server as our Intranet.
Basically we have about 5000 photos in a directory on our
database server, and they must stay there. I want to use
the FileSystemObject (running on our Intranet server) to
check if a photo is there, if so display it, if not
|
by: Sergio Otoya |
last post by:
Hi all,
Is there any way of copying a file using javascript, not using the
Filesystemobject (ActiveX). I need this to run in Windows and MACS.
Any help would be greatly appreciated.
Thanks in advance.
Sergio Otoya.
|
by: Sean S - Perth, WA |
last post by:
Hi all,
If I create a FileSystemObject Object is it appropriate to reuse it to
perform operations on different files/folders?
Or should I create a new FileSystemObject Object for each file and folder?
--
Sean.
|
by: ricolee99 |
last post by:
Hi There,
I'm trying to convert some VB code into C#.
There is a function defined in VB, GetAbsolutePathName(path) where it
returns the complete path from the root of the drive for the specified
path.
so for ex.: Assume that the current directory is c:\temp\test:
| |
by: kermit |
last post by:
I keep seeing that you can use the FileSystemObject in either VB script, or
Javascript on an aspx page.
I added a refrence to the scrrun.dll
I added importing namespaces for 'System.Object', 'Scripting',
'Scripting.FileSystemObject', and a few others
However, when I try to create the fso object I keep receiving an error.
'ActiveX component can't create object: 'Scripting.FileSystemObject'
|
by: Luis Esteban Valencia |
last post by:
I'm trying to write a little VB.NET script in an ASP.NET web page that will
create folders, move files, etc... pretty much everything you can expect to
do using the FileSystemObject library.
Is this possible in .NET?
If so, how do I do it?
I've tried:
|
by: abcd |
last post by:
from ASP.NET program how can I check the file existance and get properties
of a file on a system....do .net use the same FileSystemObject or are there
other .NET calls availbe to work equivalent to FileSystemObject
capability...
thanks
|
by: G Gerard |
last post by:
Hello
I am using the FileSystemObject to copy files on a computer
Dim MyObject as Object
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |