question

BoYang-0468 avatar image
0 Votes"
BoYang-0468 asked BoYang-0468 edited

MSDN Forum: Need help with some cmd language to select current file

Hi guys, I have a client to request us to add a function like "delete" in the right click menu, so they can right click to move files to a certain folder. I am able to add the function to the right click menu (See the picture), but my script of the function is not working.

113104-image.png

Could anyone give me a hand, and tell me how to select the current file in cmd? I tried . , %1 and $1 , but no luck. If I change the "%1" to a file path, it will work. So the problem should be "%1". My script below:

move /Y %1 "X:\WasteFolder"


dotnet-standard
image.png (14.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

BoYang-0468 avatar image
0 Votes"
BoYang-0468 answered BoYang-0468 edited

Nevermind. It worked. I had a security program blocked my script from running. after promote my permission, everything is working again. Cheers!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.