UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Voyager
Voyager
328 Views
Registered: ‎07-28-2008

How to run Disk Label test from tcl?

Jump to solution

Windows OS, I run into path length limit issue started using subst.

But every rerun of my script fails at this command because path replacement if alreay used (SUBSTed).

I had to run "exec subst V: /d" to remove it.

I'm wonder how to create a .tcl script to test if a label is already exist, so to prompt to remove before proceed. I can do this in .bat by using exist.

Please comment,

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
310 Views
Registered: ‎11-04-2010

Re: How to run Disk Label test from tcl?

Jump to solution

Hi, @legendbb ,

Hope the below example can be helpful:

set t "C:"
if { [file exist $t ] } {
puts "exist"
} else {
puts "Not exist"
}

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

2 Replies
Moderator
Moderator
311 Views
Registered: ‎11-04-2010

Re: How to run Disk Label test from tcl?

Jump to solution

Hi, @legendbb ,

Hope the below example can be helpful:

set t "C:"
if { [file exist $t ] } {
puts "exist"
} else {
puts "Not exist"
}

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

Voyager
Voyager
300 Views
Registered: ‎07-28-2008

Re: How to run Disk Label test from tcl?

Jump to solution

Great thanks,

0 Kudos