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 FileSystemObjec t library.
Is this possible in .NET?
If so, how do I do it?
I've tried:
Dim fso as new system.io.files ystemobject, but filesystemobjec t doesn't show
up in the Intellisense, nor does it work. I've included the scrunn.dll in
my project, but still no dice.
I'd rather not do the whole Server.CreateOb ject("FileSyste mObject") method,
because then I lose the intellisense in my development environment... but if
you can point me to a good list of methods and properties, that might be the
way I have to go.
Thanks so much for your help, 2 4039
Look in System.IO
I think System.IO.Direc tory and System.IO.File should handle most of what
you need...
HTH
"Luis Esteban Valencia" <le********@ava nsoft.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. 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 FileSystemObjec t library.
Is this possible in .NET?
If so, how do I do it?
I've tried:
Dim fso as new system.io.files ystemobject, but filesystemobjec t doesn't show up in the Intellisense, nor does it work. I've included the scrunn.dll in my project, but still no dice.
I'd rather not do the whole Server.CreateOb ject("FileSyste mObject") method, because then I lose the intellisense in my development environment... but if you can point me to a good list of methods and properties, that might be the way I have to go.
Thanks so much for your help,
Look into using System.IO.Direc toryInfo
The FileSystemObjec t doesn't exist in .Net
You might want to look into using System.IO.Drive Info,
System.IO.Direc tory, and other classes in System.IO. http://www.csharpfriends.com/quickst...pace=System.IO
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======
"Luis Esteban Valencia" <le********@ava nsoft.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. 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 FileSystemObjec t library.
Is this possible in .NET?
If so, how do I do it?
I've tried:
Dim fso as new system.io.files ystemobject, but filesystemobjec t doesn't show up in the Intellisense, nor does it work. I've included the scrunn.dll in my project, but still no dice.
I'd rather not do the whole Server.CreateOb ject("FileSyste mObject") method, because then I lose the intellisense in my development environment... but if you can point me to a good list of methods and properties, that might be the way I have to go.
Thanks so much for your help,
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Scott MacLean |
last post by:
I'm pulling my hair out over this one. I've got a web page that I need to
have write to another server across the network. The site in question does
NOT run in anonymous mode, that is, the user is presented with a
username/password box when they view the page.
No matter what I do, when the page attempts to access the remote server, I
get a Permission Denied error. I have tried the suggestion from this page:
...
|
by: Wayfarer |
last post by:
Hi,
I've got a freebie hosting mirror of my production personal website
(sounds kinda grandiose, doesn't it?) at http://journeys.webhostme.com/.
At the production website I was using Scripting.FileSystemObject to get
the date that the file was last modified and to read/write a counter
text file for the number of hits that the whole site had. The freebie
has a kind of half-ass*d FileSystemObject, but it has no GetFile method.
Is there...
|
by: Lin Ma |
last post by:
Greetings,
Is it possbile to check a file exist without using
Server.CreateObject("Scripting.FileSystemObject") in asp page??
The reason is our hosting company turn that function off for security
reason.
Here is my original code:
<%
|
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: Grasshopper |
last post by:
Hi,
I am automating Access reports to PDF using PDF Writer 6.0. I've
created a DTS package to run the reports and schedule a job to run this
DTS package. If I PC Anywhere into the server on where the job is
running, the job runs sucessfully, PDF files got generated, everything
is good. If I scheduled the job to run at the time that I am not
logged into the server, Access is not able to print to the printer.
The error is pretty...
|
by: google |
last post by:
I am trying to use the following ASP code to examine the file names in
a folder:
Dim fso, f, fl, s, fs
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.GetFolder("C:\Inetpub\wwwroot\MySite\subfolder")
Set fs = f.Files
For Each fl in fs
s = fl.Name 'Object Required error occurs here!
Response.Write(s)
|
by: Amanda Byrne |
last post by:
I'm trying to set up a simple guestbook script on my ASP-based site. The
code is not working and is not throwing errors, and I suspect it is because
the FileSystemObject is not liking the relative pathname I gave it.
(using IIS on Windows 2000 Terminal server)
this code is intended to display the text from the file:
MyFile = "./guestbooks/file.txt"
|
by: VancouverMike |
last post by:
Hi there,
I am writing a web app using asp.net 1.1 and C#. This web app is launched in
another win32 application and this app needs to pass information to my web
app. But this win32 application doesn't support long string(Maximum 255),
which gives me problem passing information longer than 255 through
querystring. So I have to use an intermedia plain file and in my web app,
using Scripting.FileSystemObject to open the file and read the...
|
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,...
|
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: 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,...
|
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: 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();...
|
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?
| |