i have a bat file that open my workbook that is in a removable usb
it work fine especially i have made an exe that run the bat file so all good
but now i made a change to filename of my workbook i add beside of the main name a number considering like a version
so my name was test and my bat was opening but now is test1 so cant find the workbook to open it
but tomorrow it might be test2 or test3 next day test4 and so on.
the code is
Code: Select all
Set oShell = CreateObject ("Wscript.Shell")
Dim strArgs
strArgs = "cmd /c test.bat"
"\test\test.xlsb"
if there is another way to do i am glad to hear your suggestions