ITguy565
asked on
Batch scripting question
Batch scripting
Experts,
I have run across an old dos batch script that utilizes something I have never seen.
The script is used to copy a file, but the reasons behind and the uses for the [ ] is what I am looking for.
Experts,
I have run across an old dos batch script that utilizes something I have never seen.
The script is used to copy a file, but the reasons behind and the uses for the [ ] is what I am looking for.
copy h:filename.txt i:[Spreadsheet]\folder1\folder2
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
EXPERT CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I am not really sure what occurred on that machine, I removed the mapping and remapped the drive and it appears to have resolved whatever issue that individual was having. Upon testing on my personal machine the same code, it performed differently. I have decided to provide everyone who responded points as you were all right.
Thanks,
Thanks,
ASKER
Please explain and provide an example of that..
For instance
i:\ is mapped to \\domain.com\dfsshare\fold
and if I were to run this command.
Open in new window
The code Completes successfully. If what you said above was true, this code would fail as it would see the directory path as
i:\spreadsheet\spreadsheet
So riddle me this, what is that [Spreadsheet] and what is the purpose because it doesn't seem to have "Anything" to do with the path.