Pages

03 December, 2023

Issue deleting a file in remote path via ssh

I'm trying to delete a file on a remote path via ssh, the command I'm trying to use from my local computer is using bash and my remote computer uses cmd.


I'm trying to use the following command:
ssh user@host "del -f F:\\some\\path\\in\\remote\\1.computer\\1.filename.txt"



and in the logs I get the following error:
The filename, directory name, or volume label syntax is incorrect


Any feedback will be well appreciated.


Thanks!


Edit: Important note I forgot to mention is I'm using a spawn command via a script to execute the ssh instruction

No comments:

Post a Comment

Thanks