1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

4NT - delete from command prompt and recycle bin

Discussion in 'Support' started by stevefromc, Dec 8, 2010.

  1. stevefromc

    Joined:
    Dec 8, 2010
    Messages:
    5
    Likes Received:
    0
    Hello,
    I hope I'm in the right forum - I can't seem to find one for 4NT specifically.

    I seem to recall that there is a way to, when you delete a file from the command prompt, to have it go to the recycle bin. I believe that behavior is settable via a 4NT environement variable or something like that but am not sure.

    How do I activate this feature if indeed it exists?

    Thanks,
    Steve
     
  2. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    605
    Likes Received:
    0
    I believe if you are talking about the new TCC, you can type "option" and
    the checkbox "Delete to Recycle Bin" is in the "Startup" tab.


    On Wed, Dec 8, 2010 at 14:25, stevefromc <> wrote:




    --
    Jim Cook
    2010 Sundays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
    Next year they're Monday.
     
  3. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    ---- Original Message ----
    From: stevefromc
    To: ESFabian@comcast.net
    Sent: Wednesday, 2010. December 8. 17:25
    Subject: [Support-t-2474] 4NT - delete from command prompt and recycle
    bin

    | Hello,
    | I hope I'm in the right forum - I can't see to find one for 4NT
    | specifically.
    |
    | I seem to recall that there is a way to, when you delete a file from
    | the command prompt, to have it go to the recycle bin. I believe that
    | behavior is settable via a 4NT environement variable or something
    | like that.
    |
    | How do I activate this feature?

    TCC has replaced 4NT years ago. What version of 4NT do you use? At least going back to V5, the .INI directive RecycleBin could be set to Yes or No to control default operation. Since V6 this could be set in the OPTION dialog. Both the DEL / ERASE command and the RD / RMDIR command also have the /K (no recycle bin) and /R (recycle bin) options to override the default. The RECYCLEEXCLUDE variable can be used to exclude files from using the recycle bin.
    --
    HTH, Steve
     
  4. stevefromc

    Joined:
    Dec 8, 2010
    Messages:
    5
    Likes Received:
    0
    Thanks to both of you. Typing 'OPTION' brought up the dialog box you mentioned. One question though. Will this option stay enabled should I reboot? (I am working remotely and can't reboot for some reason.)

    Btw version of 4NT is
    4NT 6.01.237A Windows XP 5.1

    Thanks!
     
  5. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    From: stevefromc
    To: ESFabian@comcast.net
    Sent: Wednesday, 2010. December 8. 22:36
    Subject: RE: [Support-t-2474] Re: 4NT - delete from command prompt and recycle bin


    Quote:
    Originally Posted by Steve F�bi�n
    ---- Original Message ----
    TCC has replaced 4NT years ago. What version of 4NT do you use? At least going back to V5, the .INI directive RecycleBin could be set to Yes or No to control default operation. Since V6 this could be set in the OPTION dialog. Both the DEL / ERASE command and the RD / RMDIR command also have the /K (no recycle bin) and /R (recycle bin) options to override the default. The RECYCLEEXCLUDE variable can be used to exclude files from using the recycle bin.
    --
    HTH, Steve

    Thanks to both of you. Typing 'OPTION' brought up the dialog box you mentioned. One question though. Will this option stay enabled should I reboot? (I am working remotely and can't reboot for some reason.)

    Btw version of 4NT is
    4NT 6.01.237A Windows XP 5.1
    -----------------------------------------
    The change modifies the .INI file 4NT uses, and thus it will be permanent - unless the file was marked read-only.
    BTW, the latest build for 4nt6 was 6.01.245, dated 2005-05-24, which you could download from jpsoft.com as a free upgrade. However, I'd suggest you upgrade to version 12 which is 5 years newer...
    --
    HTH, Steve
     
  6. stevefromc

    Joined:
    Dec 8, 2010
    Messages:
    5
    Likes Received:
    0
    Thanks. Is there a way to tell if my INI file is readonly? Where can I find it?
     
  7. stevefromc

    Joined:
    Dec 8, 2010
    Messages:
    5
    Likes Received:
    0
    One more thing-my subst'd drives are as follows:

    D:\: => C:\drive-d
    E:\: => C:\drive-e
    F:\: => C:\drive-f
    I:\: => D:\
    T:\: => C:\drive-c
    U:\: => F:\
    W:\: => E:\

    When I delete from C: the file goes to the recycle bin.
    Same for E:.
    But when I delete from I: (which is a drive I often use) it does NOT go to the recycle bin. Any idea why?

    Thanks.
     
  8. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    From: stevefromc
    | Thanks. Is there a way to tell if my INI file is readonly? Where can I |
    find it?

    The command
    ATTRIB %_ININAME
    will report both the file name and its current attributes.
    --
    HTH, Steve
     
  9. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    From: stevefromc
    | One more thing-my subset's drives are as follows:
    |
    | D:\: => C:\drive-do
    | E:\: => C:\drive-e
    | F:\: => C:\drive-if
    | I:\: => D:\
    | T:\: => C:\drive-c
    | U:\: => F:\
    | W:\: => E:\
    |
    | When I delete from C: the file goes to the recycle bin.
    | Same for E:.
    | But when I delete from I: (which is a drive I often use) it does NOT go |
    | to the recycle bin. Any idea why?

    What happens if you use Windows Explorer? It is conceivable that some
    confusion arises from using the substitutions.
    --
    Steve
     
  10. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,177
    Likes Received:
    11
    Since I: and D: reference the same path why not do the same SUBST instead
    of doing an indirect SUBST?

    I.e.
    D:\: => C:\drive-do
    I:\: => C:\drive-do

    -Scott

    Steve F$BaC(Bi$BaO(B <> wrote on 12/09/2010 12:13:44 PM:


    go |

    some

     
  11. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    From: samintz
    | Since I: and D: reference the same path why not do the same SUBST instead
    | of doing an indirect SUBST?
    |
    | I.e.
    | D:\: => C:\drive-do
    | I:\: => C:\drive-do
     
  12. stevefromc

    Joined:
    Dec 8, 2010
    Messages:
    5
    Likes Received:
    0
    That worked! Thank you!

    However, one of my colleagues, who has the same SUBST's as me has a problem in that only the C: drive files are going to the recycle bin.
    He has Windows 7, but can run XP as a virtual machine (through Virtual PC I think). His versions of 4NT are:


    From windows 7:
    4NT 6.01.237A Windows 2003 6.1

    From windows XP:
    4NT 6.01.237A Windows XP 5.1

    The later is actually the same as mine, as I have an XP machine, no Windows 7.

    Thanks.
     
  13. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,722
    Likes Received:
    80
    You cannot delete to the recycle bin if the drive is a network or remote drive.

    The delete operation is a Windows API, so if it's not going to the recycle bin (and it's not a network or remote drive, or excluded in the REcycleExclude environment variable) then it's a Windows problem, not TCC / 4NT.
     

Share This Page