Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Choice help  (Read 6341 times)

0 Members and 1 Guest are viewing this topic.

Lemonilla



    Apprentice

  • "Too sweet"
  • Thanked: 70
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Choice help
« Reply #15 on: September 25, 2014, 07:17:15 AM »
You both post a lot, and people who dont frequent the board assume that there is only one of you. Maybe?
Quote from: patio
God Bless the DOS Helpers...
Quote
If it compiles, send the files.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: Choice help
« Reply #16 on: September 25, 2014, 10:33:31 AM »
Not sure how people confuse us.  We look nothing alike!  ;D

I've just metamorphosed.   

No Dr Who, I'm shocked!

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Choice help
« Reply #17 on: September 25, 2014, 12:00:34 PM »
Both your nicknames have 9 letters, obviously that must be the cause.  ;D
I was trying to dereference Null Pointers before it was cool.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: Choice help
« Reply #18 on: September 26, 2014, 03:38:53 AM »
Both your nicknames have 9 letters, obviously that must be the cause.  ;D

Hmmm... Lemonilla has 9 characters too. :D

Squashman



    Specialist
  • Thanked: 134
  • Experience: Experienced
  • OS: Other
Re: Choice help
« Reply #19 on: September 26, 2014, 07:30:34 AM »
Hmmm... Lemonilla has 9 characters too. :D
Sounds like the start of a conspiracy!!!!  :o

shiverbob

    Topic Starter


    Beginner

    Thanked: 1
    • Yes
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows XP
Re: Choice help
« Reply #20 on: September 26, 2014, 08:29:01 AM »
Thanks but what I did

if exist  file name (
set >file name
) else (
md filename
set >filename
)
Pff computers are easy, math is hard.

Squashman



    Specialist
  • Thanked: 134
  • Experience: Experienced
  • OS: Other
Re: Choice help
« Reply #21 on: September 26, 2014, 10:05:11 AM »
Foxidrive,
Didn't we have a discussion on DosTips about IF EXIST and what happens should you be checking if a file exists versus a folder existing.  I thought I remember something weird can happen.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: Choice help
« Reply #22 on: September 26, 2014, 10:32:16 AM »
Foxidrive,
Didn't we have a discussion on DosTips about IF EXIST and what happens should you be checking if a file exists versus a folder existing.  I thought I remember something weird can happen.

One issue is checking if a folder exists in a UNC path - it fails.


You can use this to check for a folder first on a local drive, and take action on the result.

if exist "filename\" echo it's a folder