S
Sri via OfficeKB.com
Hello all,
I want to execute following dos command in my XL VB macro.
dir C:\Project\Test_Cases /s > C:\TEMP_TEST_CASE_ROOT_XXX\files.txt
If C:\Project\Test_Cases will be in a variable FName then the following
command is perfectly working fine for me.
x = Shell("cmd.exe /c dir " & FName & " /s > C:\TEMP_TEST_CASE_ROOT_XXX\files.
txt", vbHide)
The problem comes if my FName has a space in it. For example, if FName is C:\
Project\Test Cases then the above command is not working.
How to append " symbol as prefix and suffix to my variable FName.
Any help please ???
Sri
I want to execute following dos command in my XL VB macro.
dir C:\Project\Test_Cases /s > C:\TEMP_TEST_CASE_ROOT_XXX\files.txt
If C:\Project\Test_Cases will be in a variable FName then the following
command is perfectly working fine for me.
x = Shell("cmd.exe /c dir " & FName & " /s > C:\TEMP_TEST_CASE_ROOT_XXX\files.
txt", vbHide)
The problem comes if my FName has a space in it. For example, if FName is C:\
Project\Test Cases then the above command is not working.
How to append " symbol as prefix and suffix to my variable FName.
Any help please ???
Sri