Hello,
I'm developping an application which has to create a directory on a remote
server. I'm using the createdirectory API fonction which works well when the
PC runs win2000. Now, when I use WinXP, my application freeze at the first
run, and works fine at the second run.
I would like to know if some constant has to be initialized, or if something
else needs to be done.
Here is an example of what I do. It's very simple :
createdirectory ("//122.99.10.143/data/foo", NULL); 4 1685
"Snake" wrote: Hello,
I'm developping an application which has to create a directory on a remote server. I'm using the createdirectory API fonction which works well when the PC runs win2000. Now, when I use WinXP, my application freeze at the first run, and works fine at the second run.
I would like to know if some constant has to be initialized, or if something else needs to be done.
Here is an example of what I do. It's very simple :
createdirectory ("//122.99.10.143/data/foo", NULL);
Just one precision : the behavior is the same if I try UNC pathnames...
Best regards,
Snake
What do you mean by "freeze"? What happens when you attach a debugger and
break at that point?
Ronald Laeremans
Visual C++ team
"Snake" <Sn***@discussi ons.microsoft.c om> wrote in message
news:86******** *************** ***********@mic rosoft.com... Hello,
I'm developping an application which has to create a directory on a remote server. I'm using the createdirectory API fonction which works well when the PC runs win2000. Now, when I use WinXP, my application freeze at the first run, and works fine at the second run.
I would like to know if some constant has to be initialized, or if something else needs to be done.
Here is an example of what I do. It's very simple :
createdirectory ("//122.99.10.143/data/foo", NULL);
"Ronald Laeremans [MSFT]" wrote:
Hello, What do you mean by "freeze"? What happens when you attach a debugger and break at that point?
When I execute the .exe file or when I use a breakpoint, the application
seems to stop. It doesn't react to mouse event anymore. And then, about 10
minutes later, my directory is created. During this time, I can't kill the
application.
Besides, if I launch twice the application at the same time, the first react
as described above, but the second works perfectly.
Thanks,
Snake
Seems to indicate network connectivity issues. Can you attach netmon and
look for the SMB redirector traffic to see whether there is something not
happening on the source or the target computer?
Ronald
"Snake" <Sn***@discussi ons.microsoft.c om> wrote in message
news:93******** *************** ***********@mic rosoft.com... "Ronald Laeremans [MSFT]" wrote:
Hello,
What do you mean by "freeze"? What happens when you attach a debugger and break at that point?
When I execute the .exe file or when I use a breakpoint, the application seems to stop. It doesn't react to mouse event anymore. And then, about 10 minutes later, my directory is created. During this time, I can't kill the application.
Besides, if I launch twice the application at the same time, the first react as described above, but the second works perfectly.
Thanks, Snake
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MAF |
last post by:
How do I create a directory inside C#?
|
by: Daniel |
last post by:
If I call CreateDirectory(\\\\devDriveA\\foo\\bar\\a\\b\\c) and
\\devDriveA\foo\bar already exists then sub directories a\b\c don't get
created. When I use CreateDirectory on my own file system, e.g.
CreateDirectory("c:\\a\\b\\c"); it works fine. Is there something that I
must do to get CreateDirectory to work on network drives?
|
by: H.B. |
last post by:
Hi,
Is there a way to avoid conflicts between CreateDirectory() (from API) and
Directory::CreateDirectory(). The other functions from Directory class
works(Exists() as example). It seems to be caused by the inclusion of
"windows.h" ... but I need it.
I already tried the System::IO::Directory::CreateDirectory() typo.
Any ideas ?
|
by: Paul Bromley |
last post by:
How can I create a directory within a shared ntwork directory??
sServerName - is the Server name
"\Docs" - is the shared directory
"\Others" - is the directory to create.
The following does not work, although I can through code open and copy files
from "\Docs"
|
by: TerrenceJ |
last post by:
Hi there
I've configure our SBS 2003 server to allow remote access and Outlook over internet.
The mail works fine, but when I try remote access, I am asked for username and password, which I complete and then I get this error.
____________________________________
Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\remote\3f1585d2\3070828a" is denied.
Description: An unhandled exception occurred...
| |
by: CCLeasing |
last post by:
If (Directory.Exists(@"c:\indigo\" + txtOfficial + @"\" +
comOffice.Text + @"\" + numTerm.Value.ToString()))
{
storereport();
}
else
{
Directory.CreateDirectory(@"c:\indigo\" + txtOfficial +
@"\" + comOffice.Text + @"\" + numTerm.Value.ToString());
|
by: Vlad |
last post by:
I am having problems using the file.create method within a function
that is called when looping through an array of filepaths.
If I call my function with a hardcoded file path --C:\Temp.txt the
function creates the file as expected.
When I loop through my array I get the error - "ArgumentException was
unhandled - Illegal characters in path"
The value "C:\Temp.txt" is the first value in the array - as it works
|
by: Robert |
last post by:
Greetings
New to Visual Studio 2008.
Always us VB6.0 SP5.
I am trying to copy files from A to B.
I select a directory, and copy files. Works ok, but it does not create the
directory first.
snippet.
Private Sub cmdTo_Click(ByVal sender As System.Object, ByVal e As
|
by: =?Utf-8?B?T21hcg==?= |
last post by:
Hi,
i want to create a folder in remote computer in c# without using WMI.
any help?
thanks.
|
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: 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: 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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |