473,395 Members | 1,797 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,395 software developers and data experts.

How to open folders via c++

Hi guys, I am currently triying to open folders by writing a program.

Using system() i should be able to open an specific folder but i can't.

i have tried using cd somefolder, cd.., cd\, cd /d but i cannot, any idea??
How should i do???
Mar 23 '07 #1
4 1496
RedSon
5,000 Expert 4TB
check out the stdio.h library.
Mar 23 '07 #2
check out the stdio.h library.
what do you mean??? Can I open folders using stdio.h????
Mar 23 '07 #3
RedSon
5,000 Expert 4TB
what do you mean??? Can I open folders using stdio.h????
stdio.h has methods for you to use to open/close and traverse directories on the system. There is no such thing as opening a folder to a computer program. You are opening a file not a folder. All the words between the slashes are just the path to the file.
Mar 23 '07 #4
DeMan
1,806 1GB
stdio.h works with standard input/ouput including file handling (which means dirs too).

using system....are you working from the command line or from an IDE?
(you can also access files using there complete path, and may not need to change directories)
Mar 23 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: mscir | last post by:
I just installed ASP after a couple of years of not using it, PWS Win 98 SE. A couple of things are throwing me, and I can't remember whether these worked in the past. One is I can't...
1
by: Navin Kulshreshtha | last post by:
Hello, I just installed SQL Server 2000 on my home computer and am connecting to a remote SQL server over the Internet. I can log into the server just fine and see 7 folders including the...
1
by: Venkat | last post by:
Hi, I have an file1.exe file stored at some physical location say C:\Test\file1.exe. I created a virtual folder say MyFolder pointing to my physical folder(C:\Test\). I wrote this piece of...
0
by: Sven Groot | last post by:
Using Outlook 2002 NL with all updates installed. I'm trying to open a backup pst file I have on CD. I have copied the file to my harddrive, made sure it's not read-only, am logged in as...
2
by: Horness | last post by:
Hi All, We're in the process of re-writing the Intranet at work, and my javascript knowledge could be written on the back of a post card. ;-) Can any of you point me in the direction of some...
4
by: lauren quantrell | last post by:
Is there a way to open the MS Outlook address book using VBA and then be able to do something with the return value? I want users to click an icon to open the Outlook address book then when an...
0
by: Chen | last post by:
I do not know what's wrong with my computer setting. When I try to open a project from 'project from web'. If I type the computer name in the textbox of the dialog box: http://CompterA it will...
7
by: jonathandrott | last post by:
sorry newbie question probably. i'm trying to open an specific folder. open each file with in the folder individually and process each one. all the processing code has been written. i'm looking...
1
by: shriil | last post by:
Hi I am facing a problem with regard to opening of Access Databases, resident on pcs of my office network connected thru LAN, from my machine on the network. The folders in which these...
0
by: miztaken | last post by:
Hi Everyone, Is it possible to customize.net's default File Open/Save Dialog Box to display only selected folders in PC according to user's privilege. I want to totally hide the Special Folders...
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?
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
Oralloy
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,...
0
jinu1996
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...
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
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...
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.