Announcement

Collapse
No announcement yet.

Can not move a jpg file programmatically

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can not move a jpg file programmatically

    Using the NAME instruction in PB9 I can MOVE all files except JPG files.
    Using the MOVEFILE API I can MOVE all files except JPG files.
    ( Error 70 - Permission denied )

    Using VBScript I can MOVE all files sucessfully.
    Code:
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    objFSO.MoveFile "C:\Tenderpaws\MyBunch\Sharlee\logo.jpg" , "C:\pbwin90\samples\ddt\filefind\old\logo.jpg"
    Attributes on all JPG files are %Normal(0)
    All JPG files are NOT blocked.

    The problem exists on my WinXP and Vista systems.
    ( Normal file activity works - drap drop, etc.)

    Any suggestions would be appreciated
    Trento Castricone
    www.fileraptor.com
    [email protected]

  • #2
    I just successfully moved a .JPG file on my hard drive using the NAME command. I imagine you have a permissions problem.
    Adam Drake
    Drake Software

    Comment


    • #3
      Sounds obvious, but is the file in use.

      Comment


      • #4
        If you don't know what is holding onto the file, this might help: http://ccollomb.free.fr/unlocker/
        Erich Schulman (KT4VOL/KTN4CA)
        Go Big Orange

        Comment


        • #5
          System restore fixed the problem.
          Something was locking all JPG files from being moved.
          The curious note was that VBScript could move the JPG files with no problem.
          Trento Castricone
          www.fileraptor.com
          [email protected]

          Comment

          Working...
          X