473,397 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How do you get working directory

Hello
How do you get the working directory? and do you delete a temp file one you are done with it
thank
Jim
Nov 20 '05 #1
8 16141
Cor
Hi Jim,

Have a look at

application.StartupPath
and
io.file.delete(fileandpath)

I hope this helps

Cor
Nov 20 '05 #2
Cor
Hi Jim,

Have a look at

application.StartupPath
and
io.file.delete(fileandpath)

I hope this helps

Cor
Nov 20 '05 #3
Hi,

System.IO.Path.GetDirectoryName(System.Reflection. Assembly.GetExecutingAssem
bly.Location)

Ken

-------------

"Jim Butler" <an*******@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hello,
How do you get the working directory? and do you delete a temp file one you are done with it? thanks
Jim

Nov 20 '05 #4
Hi,

System.IO.Path.GetDirectoryName(System.Reflection. Assembly.GetExecutingAssem
bly.Location)

Ken

-------------

"Jim Butler" <an*******@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
Hello,
How do you get the working directory? and do you delete a temp file one you are done with it? thanks
Jim

Nov 20 '05 #5
> How do you get the working directory?
Just like said before, take a look at
Application.StartupPath. But if i
understand your next question correct, you want to save a temporary
file, so it is much better to save this in the correct folder (just
because of access-rights etc.), so get the filename for that with
[b:3c7896d5a3]System.IO.Path.GetTempFileName[/b:3c7896d5a3].
and do you delete a temp file one you are done with it?

Of course.

Regards,
Thommy

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #6
> How do you get the working directory?
Just like said before, take a look at
Application.StartupPath. But if i
understand your next question correct, you want to save a temporary
file, so it is much better to save this in the correct folder (just
because of access-rights etc.), so get the filename for that with
[b:3c7896d5a3]System.IO.Path.GetTempFileName[/b:3c7896d5a3].
and do you delete a temp file one you are done with it?

Of course.

Regards,
Thommy

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #7
thanks Thommy
Nov 20 '05 #8
thanks Thommy
Nov 20 '05 #9

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

Similar topics

6
by: Peter Maas | last post by:
My goal is to have the top level of a directory tree in the Python path without touching anything outside the directory. I tried to create .pth files with the top level path in every subdirectory...
6
by: Mullin Yu | last post by:
hi, i have a web service that has file operations on Windows OS, and there may be a file concurrency issue if only one working directory e.g. c:\working therefore, i want to have a unique sub...
8
by: Hardy Wang | last post by:
Hi: Is it possible for me to create/open web application from remote machine other than port 80? And create application directly under virtual web site instead of creating a virtual directory?...
4
by: qbproger | last post by:
I'm developing a plugin for some software. The previous version of the software didn't require a start in directory to be set. This allowed me to leave the working directory to the default in the...
4
by: Jeff | last post by:
I feel like I should have been able to figure this out but I can't seem to find any references on this topic. It seems like my current working directory is consistently a few directories up from...
14
by: gio | last post by:
I have a problem and the solution should works under windows and unix OS. Suppose I have a program ex.c in the directory X (so the current working directory of ex.c is X). Also suppose I have...
3
by: duyanning | last post by:
I have written a pyhton script that will process data file in current working directory. My script is in an different directory to data file. When I debug this script using pdb within emacs, emacs...
1
by: Michael Torrie | last post by:
I have a small multi-threaded program that spawns a number of threads that each spawn a particular process in a particular temporary directory. My problem is that using os.chdir to change the...
2
by: Christian Blackburn | last post by:
Hi Gang, One of the properties of a shortcut is the working directory. I would like to be able to detect and use whatever working directory the shortcut specified. Can someone tell me how to...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
agi2029
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,...

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.