Open folder, read file, close file, open new folder, read file close file etc....
My current directory has several folders within it. Each folder has the same type of file within it.
How do i go from the current directory, into one of the folders, edit the file, then come out of the folder, then go into another folder, edit a file then come out of the folder then into a new one etc etc etc.
If this does not make sense i apologise and will try to explain my problem a little better.
Any help would be much appreciated.
I'm not sure it makes sense. Personally I use the mouse and keyboard for doing this. Were you thinking of something else?...question about folders and files
I'm testing a new IMAP server (Oracle Collaboration Suite) which seems
to allow names to represent both files and directories. This is
messing with my _long_ engrained use of the TAB key. On the old
server (running UW-IMAP), TAB did the Right Thing wrt adding a slash
at the end of the name. For instance, if I wanted to save mail into
"directory/file" I could type:
"s" "di" <tab> "fi" <tab>
and pine would correctly expand "di<tab>" to "directory/" and
"fi<tab>" to "file". The behavi...Question about Import files in a folder
i have some files(excel) in folder, I want to import all files
into sas at a time( i donot know files names in that folder).
If we know files in folder. I can keep in macro variables then i
Here problem is how create dataset that contains file names in
...question about .h file and .cpp file,also compiler question
I think .h file offord a "catalog" of symbols and .cpp offord implements
but I have no idea why I got such an complier error
> g++ -o test test.cpp virtual_screen.cpp
virtual_screen.h:15: error: expected initializer before a�?&a�? token
test.cpp: In function a�?int main(int, const char**)a�?:
test.cpp:14: error: no match for a�?operator<<a�? in
a�?operator<<(((VirtualScreen&)(& tmp_vs_)), i_a) << str_tmpa�?[0m
virtual_screen.h:17: note: candidates are: VirtualScreen&
virtual_screen.h:15: erro...need help, my file folders from external drive and usb drive became exe fileneed help, my file folders from external drive and usb drive became exe file
need help, my file folders from external drive and usb drive became exe
file. my avg anti virus can detect it as trojan horse dropper agent.mqp.
i dont want to remove the exe file yet because im afraid my files will
be removed as well. can anyone give me another way to recover the files?
wewet's Profile: http://forums.techarena.in/members/100316.htm
View this thread: http://forums.techarena.in/virus-spyware/1184791.htm
...Copying files from sub folders under source directories into sub folders with same names as source directory sub folders in destination directories without overwriting already existing files of same n
as source directory=20
as destination directory. These are given in a csv file like
Python code should read csv file. Copy files from source to destination(fil=
es in /src/alias should be copied to /dest/alias and not to /dest/xml i.e.,=
directory names should be the same). If /dest contains same files as /src,=
then they code shoul...Re: Question about Import files in a folder
On Wed, 22 Oct 2008 23:14:31 -0700, Satya <kondal4uall@GMAIL.COM> wrote:
>i have some files(excel) in folder, I want to import all files
>into sas at a time( i donot know files names in that folder).
>If we know files in folder. I can keep in macro variables then i
>Here problem is how create dataset that contains file names in
have a look at the examples in on-line doc for function dRead()
...Find if a file existing within 1000s of folder/sub-folder
I have a list of scripts which are present in various folders and this may be present in one of their sub-folder too.
There are 1000s of folders and hence parsing through each folder/sub-folder is not an option.
So I was trying to dir /s /b using python.
Now since the file's path name is computed using other part of the code, I am feeding in a variable here and somehow it does not seem to work.. :(
Intent is to run following command from python
dir /s /b "c:/abc/def/ghjmain\features\XYZ\*<filename>"
My present code.
for row in r...Files/Folder Collection Access Syntax Question
I suppose I am asking this because I am hardheaded but here you go.
Is there another way to cycle through a list of Files/Folder
collection besides the use of Enumeration? I really want to use a for
loop because the other way looks so ugly (not to mention the
limitations of only being able to sequentially access the list), but
the following blows up when I try to access the individual folders in
Blows up in the for loop:
FSO = new ActiveXObject("Scripting.FileSystemObject");
Folder = FSO.GetFolder(CurrentDirectory);
SubFolders = Folder.SubFolders;
alert(SubFol...question about string manipulation for multiple files in a folder
I am stuck with the following problem:
I have a folder with a lot of excel files. Each one has the file
name "analysisxx.cc.xls" where xx is a number, the difficulty is the
number is not from 1 to the total number of files, it's some random
positive integer. I have 1000 such kind of files in a folder and I
want to have an array with length 1000, each element in the array is
the corresponding number xx in the file. I played around some matlab
commands such as strcmp, findstr and have not figured out a correct
way to do this automatically, with 1000 files, it's impossib...Beginner Question: How to detect if a file is already exist in the folder
Hi! I would like to kindly ask if there is a TCL command or set of
script to detect if a file (e.g c:\log_20051109") exist in the folder.
What I would like to do is to:
(1) detect if a log file with naming c:\log_YYYYMMDD exist in the
(2) if the log does not exist, then create a new one with today's date
if the log already exist with today's day as suffix, then append
the data into already existed log file.
Your help is greatly appreciated!
newbie, willing to sharpen my TCL skill
> Hi! I would like to kindly ask if there is a TC...Files & Folders lost after installing 180GB drive to non-compliant m/b. Poss. to recover files/folders?
I had an almost full 180GB drive on installed on a PCI IDE card that
could handle a drive of that size. It was formatted as a single large
partition. A couple of days ago, forgetting about the 137GB limit on
my older motherboard bios I plugged the 180GB drive into it.
After no obvious objection from the PC and happened to notice a bunch
of files missing on my 180GB drive. I ran chkdsk (without the /f) but
noticed no change. No writes have been made to the 180GB drive.
I then put the drive back on the PCI IDE controller and whilst it now
behaves more normally many of the files and ...Question on Shared Files & Folders OS X -from OS X newbie
Hi Group, I hope i am in the correct newsgroup for this question. I am
a long time windows power user that has switched to OS X. I still use
my 3 XP boxs on my network. In windows I am able to share individual
folders and have full control over read write functions. I am trying
to achieve this in OS X. When I enable Windows File Sharing in the OS
X system properties it shares my entire Home directory. I dont want
that, i want to share individual folders. Could someone please point
me in the right direction on how i can accomplish this? I.E., advice,
website, book, etc. I thank you for your hel...Question on moving files with File Manager.....
I saw an old news group posting about a way to move a file that one has
downloaded to a calc.....here is the posting....
> The instructions you have are way more complicated than they need to be.
> Here's how I attach a library:
> 1. Download the library to the calculator.
> 2. Go into the filer (LeftShift APPS). Select the library (the cursor
> should already be over it) and press the MOVE soft menu key.
> 3. Press the corresponding number key of the port you want the library
> be in.
> 4. Press ON+C.
> You can then access the library through the LIB me...Setup File / Configuration File Question
I was hoping to get some insight as to which is the recommended way of using setup files for stuff like data paths and other general parameters that the user can set like fonts and colors when they are running a compiled app (a labview app built as an exe).
CSV files - open them, read them, parse them
INI Files - Use LabView native functions to read and write section parameters
XML - Not sure how much native support there is for XML. I have seen a few example that seem to be using MSXML parser as an activeX control then sending VB code to ed...Scanning for files in folders inside folders
I'm wanting to simply scan for any text files conatined within a folder. I can do this when all the files are immediatley inside one folder however how do I do this for files that are contained within a multitude of folders within folders?
C:\Files is the main path containing everything and I can find files located directly in this directory however I want to search for the files contained in C:\Files\FolderA, C:\Files\FolderB and even C:\Files\FolderA\folder1 etc...
Anyone know how to do this?
"tony evans" <firstname.lastname@example.org> wr...tar --files-from= and filter files from folders
I want to tar a selection of folders and files from a debian server. To
make it simple I want to use a list of file and foldernames using the
parameters in the subject.
However I need to distinguish between files and folders. Is this
possible using tar's --files-from files list?
Say I have:
/usr/myfolder1 (from where I want to copy all files and subfolders)
/usr/myfolder2 (from where I want to only copy all files starting with
@00* but NO subfolders, if possible)
/usr/myfolder3 (from where I want to copy all subfolders but NO files,
Thanks for comments and...Question on JAR files and the Manifest file
I've got a JAR file with a Manifest file with some entries that I've added.
What I don't understand is how to get those entries out of the Manifest file
I know about the JarFile and Manifest classes, but how I can use those from
within the JAR file?
Basically, what I have is a JAR file that gets loaded by a 3rd party app
(JBuilder) and I want a way to put information in that JAR about the product
bundled inside. Things like the version (not the JAR version, but the
version of my product that is included inside the JAR.) and the API version
(I have some JNI calls that I ma...find file in folder or sub folders
Thus matlab have a command that can search a directory and all sub folders. Something like:
function ( 'D:\My Documents\My Music' , '*.mp3' )
So the function returns all names containing the extension .mp3, even if the are in a folder like:
D:\My Documents\My Music\2 many dj's\As Heard on Radio Soulwax, Pt. 2
On 3/5/2011 4:09 AM, Stefan Heinen wrote:
> Thus matlab have a command that can search a directory and all sub folders. Something like:
> function ( 'D:\My Documents\My Music' , '*.mp3' )
> So...question about updating file and file pointer
I've been searching for this on the internet.
all they're talking is sequential file transaction.
Does anyone know algorithm for updating file without creating new one and
deleting the old?
I guess it's easy to update random access file.
#define CLOSED ((FILE *)-1)
#define ENDLIST ((FILE *)-2)
I saw this code from src file
one for closed file pointer
one for indicating end to the file pointer list array and used like
is this legal?
do -1, and -2 guarantee unique value that those two values are never same
opened FILE * val...http://LongPathTool.com - LONG PATH Tool
http://LongPathTool.com - LONG PATH Tool - Windows tool to copy or
delete files and folders with path too long error
Windows tool to copy or delete files and folders with path too long
filename too long error. Just browse to the file and press a button
copy or detele it, thats it! The application solves the problem with
inability to copy and delete files and folders with long paths in
Explorer. They could be created by virus/adware/Mac OS/other
Normally one can't access such files under Windows and therefore
copy or delete them either. Clean up files...File Notes Organizer
For Immediate Release
For more information contact:
UK: 011 44 2476 603118
Virtual File Folders Break New Ground For The Windows Explorer File
(May, 2005) AtLast! Solutions has released File Notes Organizer 3.4,
adding virtual folders, improved bookmarks, new dual monitor
presentation technology and updated viewers to its Windows file manager
and presentation software.
File Notes Organizer's design has always followed the Windows
Explorer model, adding optional descriptive...File Open & File Save Questions
Again drawing on the groups experience:-
1. For general file opening and file saving, using VB6, are there any issues
with using the FileOpen and FileSave Common Dialog Boxes?
2. Is using the FileOpen and FileSave Common Dialog Boxes the best way to go
3. For Most of my projects I will be using the same types of data input form
and report output form, as discussed here recently. Also, the files that are
saved or recalled are all of the same type (text files with extension .job)
and are, ideally for me, saved in the same directory (App.Path / job). This
being the case the FileOpe...naming convention of part files for assembly files
In SolidWorks, I have an assembly file bb.sldasm
with part files
when I save the assembly file as STL format,
two files are saved:
What the postfix "-1" means? In what circumstances will numbers other
than 1 appear?
(At first I guess postfix other than 1 would occur when part files with
the same file name but in different directories are included in the
assembly file. But it seems that SolidWorks does not allow me to do so.
It shows error.)
Thanks for advice!~
If for instance bb1.sldprt was a toy car and you have four (4) wheel/tire