Re: Renaming a file in VB 6.0

From: Jim K (krusej_at_megsinet.net)
Date: 10/15/04


Date: Fri, 15 Oct 2004 07:45:55 -0500

Try Name "E:\PeriNew.log" as "Peri.Log"

"Peri" <lperi@CSPL.com> wrote in message
news:eqnEXDrsEHA.3324@TK2MSFTNGP15.phx.gbl...
> Hi,
>
> I am trying to rename a file using VB 6.0. The command I am tried using
are:
>
> Call Shell("Ren E:\PeriNew.log Peri.log", vbHide)
> or
> Call Shell("Rename E:\PeriNew.log Peri.log", vbHide)
> or
> Call Shell("Rename E:\PeriNew.log Peri.log")
> or
> Call Shell("Ren E:\PeriNew.log Peri.log")
>
> This is to change the name PeriNew.log to Peri.log. But I am getting a
error
> called "File not found - 53". But If I run the same command in command
> prompt it is excuting fine...
>
> Can anyone help me out
>
> Thanks and Regards,
>
> Peri
>
>



Relevant Pages

  • Re: ntfs.sys missing or corrupt
    ... indicated in this command. ... If the ntfs.sys file is there and corrupt it will rename it. ... not there then it was missing. ...
    (microsoft.public.windowsxp.general)
  • Rename a Computer
    ... Are there any Windows or Resource Kit tools to rename a computer from the ... command line. ... I don't want to use VBScript thanks. ... Regards ...
    (microsoft.public.win2000.cmdprompt.admin)
  • find for renaming
    ... I need some help with the command "find". ... I want to rename several files in several directories. ... I didn't manage to extract dirname and add it to my new name. ... Regards, ...
    (comp.unix.shell)
  • Re: Renaming a file in VB 6.0
    ... "Peri" wrote in message ... > in command prompt it is excuting fine... ... you can rename directly from VB using the Name ... statement but FYI the reason you can't shell "Ren" is that there is no ...
    (microsoft.public.vb.general.discussion)
  • Renaming a file in VB 6.0
    ... I am trying to rename a file using VB 6.0. ... Call Shell("Rename E:\PeriNew.log Peri.log", vbHide) ... But If I run the same command in command ... Peri ...
    (microsoft.public.vb.general.discussion)

Quantcast