Re: simple question

From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 05/27/04


Date: Thu, 27 May 2004 11:09:26 -0500


"Yahya Saad" <yahyasaad@hotmail.com> wrote

> I would like to ask a simple question, I am writing a script to read
> from a text file, using the OpenTextFile, but I would like to know what
> should I replace the filename to be able to read from the current folder
> respective from the folders location.

Did you try just using the name of the file? If that did not get it, then
perhaps the current folder is not the one you think it is.

You say you are writing script, where will that script be running from?
This group is not about writing script, it is about writing Visual Basic code.
If you are making ASP pages or creating some VBA application, then
you may find more people experienced in what you want to do, by using
the group associated with the application you are using....

LFS



Relevant Pages

  • Re: Warning Message to Prevent Overwritting
    ... if the description on the cell "D13" is WO9999. ... 2.- Create a filename WO9999.xls and located under the directory WO9999 ... The mkdir command either creates the folder or fails to create the folder. ...
    (microsoft.public.excel.programming)
  • RE: how to select, rename, and save a file using Access VBA ?
    ... So far no luck with that portion, but the file overwriting ... MsgBox "Filename Exists, Try a different filename." ... and it is saving the associated graphics file into the ... folder if they have the same name. ...
    (microsoft.public.access.modulesdaovba)
  • RE: how to select, rename, and save a file using Access VBA ?
    ... So far no luck with that portion, but the file overwriting ... MsgBox "Filename Exists, Try a different filename." ... and it is saving the associated graphics file into the ... folder on my hard drive. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Recursive Function + File searching to return path
    ... Tier 1 Filename: A.xls ... finding' spreadsheet is going to be in a folder which contains another ... That other folder contains the entire hierarchy. ...
    (microsoft.public.excel.programming)
  • Re: Make folder with accompanying shortcut if possible
    ... (Filename can be a filename, ... Traverse Folder / Execute File ... /P user:perm;spec Replace specified user's access rights. ... Wildcard characters can be used to specify more than one file in a command, ...
    (microsoft.public.scripting.vbscript)