did you try with "del c:\Temp" instead of del "/c/Temp"?
You need to specify Windows dir writing style with nexec.
1 of 1 people found this helpful
By the way, if Temp si a folder, the deletion cmd would be "rmdir c:\Temp"
"del" applies to file
Its either /c/temp or /c/tmp
its all about lower and upper case.. try that..UNIX
you can also create a simple batch file and create a BL Package using that batch file.. clears the temp..
Thanks for your support .
rmdir worked as expected .
Could you please let me know how to delete folders containing subfolders , I remember rmdir /s /q options are der. but I got following error:
INBLGT-TestReme% nexec inblr-yamgarrr rmdir /s /q "/c/Temp/Test"
rmdir: Unable to delete directory /s: No such file or directory
rmdir: Unable to delete directory /q: Permission denied
Could you please assist me?
From windows command line I am able to delete it using above command but from NSH I am not able to.
try: rmdir /S /Q c:\Temp
(Windows style directories)
OR without nexec:
rm -rf /c/Temp
rm -rf /c/temp*
I would like to delete folder from remote system ....is it possible using rmdir.
Also I read about rmdir and found that this command is used to delete empty directory.
to remove a directory and all of its contents via nsh you can do:
rm -rf //server/some/directory
the -r tells rm to recurse, which you must specify for a directory. the -f specifies a force and won't prompt for every deletion.
in nsh the server just becomes another element of the path. so rm -rf /some/directory will work locally, either on your own system or if you have 'cd'd' to a remote system in nsh, and rm -rf //server/some/directory would work w/o cd'd to the remote system.
Thanks a lot Bill.